CVE-2026-59935: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in py-pdf pypdf
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.2, an attacker can craft a PDF with a page content stream containing a not terminated inline image that uses the ASCII85 or ASCIIHex filters, causing an infinite loop during parsing such as when extracting page text. This issue is fixed in version 6.14.2.
AI Analysis
Technical Summary
CVE-2026-59935 is a high-severity vulnerability in the pypdf library, a pure-Python PDF processing tool. Versions before 6.14.2 are affected by an infinite loop condition triggered by a crafted PDF containing a page content stream with a not terminated inline image filtered by ASCII85 or ASCIIHex. This infinite loop occurs during parsing operations like text extraction. The vulnerability is classified under CWE-835 (Loop with Unreachable Exit Condition). The issue has been resolved in pypdf version 6.14.2.
Potential Impact
An attacker can cause a denial of service by supplying a malicious PDF that triggers an infinite loop during parsing, potentially causing the application using pypdf to hang or become unresponsive. There is no indication of code execution or data leakage from the provided information.
Mitigation Recommendations
Upgrade pypdf to version 6.14.2 or later, where this infinite loop vulnerability has been fixed. Patch status is confirmed by the vendor advisory indicating the fix in 6.14.2. No other mitigations are specified.
CVE-2026-59935: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in py-pdf pypdf
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.2, an attacker can craft a PDF with a page content stream containing a not terminated inline image that uses the ASCII85 or ASCIIHex filters, causing an infinite loop during parsing such as when extracting page text. This issue is fixed in version 6.14.2.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59935 is a high-severity vulnerability in the pypdf library, a pure-Python PDF processing tool. Versions before 6.14.2 are affected by an infinite loop condition triggered by a crafted PDF containing a page content stream with a not terminated inline image filtered by ASCII85 or ASCIIHex. This infinite loop occurs during parsing operations like text extraction. The vulnerability is classified under CWE-835 (Loop with Unreachable Exit Condition). The issue has been resolved in pypdf version 6.14.2.
Potential Impact
An attacker can cause a denial of service by supplying a malicious PDF that triggers an infinite loop during parsing, potentially causing the application using pypdf to hang or become unresponsive. There is no indication of code execution or data leakage from the provided information.
Mitigation Recommendations
Upgrade pypdf to version 6.14.2 or later, where this infinite loop vulnerability has been fixed. Patch status is confirmed by the vendor advisory indicating the fix in 6.14.2. No other mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T18:20:06.126Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4ea889c9d9e3dbe3a526ab
Added to database: 07/08/2026, 19:44:09 UTC
Last enriched: 07/16/2026, 10:14:29 UTC
Last updated: 08/22/2026, 16:34:22 UTC
Views: 121
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.