Pypdf2: Prior to 6.14.2, an attacker can craft a PDF with a page content stream containing a not terminated inline
Affects pypdf2Source GCVE Database
Not known to be exploited · CVSS 8.7 High · fixed in 0.5.1_23 : patch pypdf2 soon.
Data as of 26 Oct 2026, 15:59 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.5.1_23, 3.3.15_3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Upgrade pdfly to 0.5.1_23; psutils to 3.3.15_3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 16.04 LTSpypdf2pkg:deb/ubuntu/pypdf2?arch=source&distro=esm-apps/xenialOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSpypdf2pkg:deb/ubuntu/pypdf2?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSpypdf2pkg:deb/ubuntu/pypdf2?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSpypdf2pkg:deb/ubuntu/pypdf2?arch=source&distro=jammyOther 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– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Pypdf2 version 6.14.2. Users should upgrade to this version or later to remediate the vulnerability. No other mitigation or workaround is indicated.
Description
Pypdf2 versions prior to 6.14.2 have a vulnerability where parsing a PDF page containing a not terminated inline image using ASCII85 or ASCIIHex filters can cause an infinite loop during content stream parsing, such as when extracting page text. This issue has been fixed in version 6.14.2.
References
- ubuntu.com/security/CVE-2026-59935 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-59935 (opens in a new tab)
- github.com/py-pdf/pypdf/security/advisories/GHSA-g867-7843-wf8q (opens in a new tab)
- github.com/py-pdf/pypdf/pull/3892 (opens in a new tab)
- suse.com/support/security/rating/ (opens in a new tab)
- ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11238-1.json (opens in a new tab)
- suse.com/security/cve/CVE-2026-59935/ (opens in a new tab)
- suse.com/security/cve/CVE-2026-59936/ (opens in a new tab)
- suse.com/security/cve/CVE-2026-59937/ (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-59935 (opens in a new tab)
- github.com/py-pdf/pypdf/commit/5a33a46416aa1ae6c025ff90a3cca57631fdafd2 (opens in a new tab)
- github.com/py-pdf/pypdf (opens in a new tab)
- github.com/py-pdf/pypdf/releases/tag/6.14.2 (opens in a new tab)