CVE-2026-22691: Pypdf2 · Prior to version 6.6.0, pypdf has possible long runtimes for malformed startxref
Affects pypdf2Source GCVE Database
Not known to be exploited · CVSS 2.7 Low · fixed in 6.6.0 : update pypdf2 when convenient.
Data as of 24 Nov 2026, 21:15 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 2.7 |
|---|
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.6.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:UExploitation evidence
Disclosed: evidence found.
CVE published 10 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pypdfpkg:deb/ubuntu/pypdf?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpypdfpkg:deb/ubuntu/pypdf?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10pypdfpkg:deb/ubuntu/pypdf?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSpypdfpkg:deb/ubuntu/pypdf?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSpypdf2pkg:deb/ubuntu/pypdf2?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSpypdf2pkg:deb/ubuntu/pypdf2?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
pypdf is a free and open-source pure-python PDF library. Prior to version 6.6.0, pypdf has possible long runtimes for malformed startxref. An attacker who uses this vulnerability can craft a PDF which leads to possibly long runtimes for invalid startxref entries. When rebuilding the cross-reference table, PDF files with lots of whitespace characters become problematic. Only the non-strict reading mode is affected. Only the non-strict reading mode is affected. This issue has been patched in version 6.6.0.
References
- ubuntu.com/security/CVE-2026-22691 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-22691 (opens in a new tab)
- github.com/py-pdf/pypdf/security/advisories/GHSA-4f6g-68pf-7vhv (opens in a new tab)
- github.com/py-pdf/pypdf/pull/3594 (opens in a new tab)
- github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45 (opens in a new tab)
- github.com/py-pdf/pypdf/releases/tag/6.6.0 (opens in a new tab)