CVE-2026-119208pypdf: Possible long runtimes/large memory usage for encrypted PDF files
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.3, pypdf can consume excessive time and memory when an application accesses the page count of a crafted encrypted PDF whose page tree declares a forged /Count value. Even after successful decryption, page-count retrieval trusts the unvalidated declared count instead of walking the page tree, allowing the attacker-controlled value to drive excessive work and memory use. This issue is fixed in version 6.21.3.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | pypdf | Fix pending | UBUNTU-CVE-2026-119208 | |
| Ubuntu 26.04 | pypdf | Under investigation | UBUNTU-CVE-2026-119208 | |
| Ubuntu 24.04 | pypdf | Under investigation | UBUNTU-CVE-2026-119208 | |
| Debian 14 | pypdf | Fixed | 6.21.4-1 | DEBIAN-CVE-2026-119208 |
| Debian 13 | pypdf | Fix pending | DEBIAN-CVE-2026-119208 | |
| Debian 12 | pypdf | Fix pending | DEBIAN-CVE-2026-119208 | |
| Debian 12 | pypdf2 | Fix pending | DEBIAN-CVE-2026-119208 | |
| PyPI library | pypdf | Fixed | 6.21.3 | GHSA-62m5-6wh8-28x7 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- py-pdf pypdf: affected: < 6.21.3
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-62m5-6wh8-28x7
- https://github.com/py-pdf/pypdf/pull/4270
- https://github.com/py-pdf/pypdf/commit/82b91951dc74496bb3efe6465434f041bb6a5e6b
- https://github.com/py-pdf/pypdf/releases/tag/6.21.3
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.