CVE-2026-59936: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.1, an attacker can craft a PDF with a page content stream containing a not terminated inline image, causing an infinite loop during inline image end marker detection such as when extracting page text. This issue is fixed in version 6.14.1.
AI Analysis
Technical Summary
The pypdf library, a pure-Python PDF processing tool, has a vulnerability classified as CWE-400 (Uncontrolled Resource Consumption). Versions before 6.14.1 allow an attacker to craft a malicious PDF with a page content stream containing an inline image that is not properly terminated. When pypdf processes this malformed PDF, it enters an infinite loop during the detection of the inline image's end marker, leading to denial of service through resource exhaustion. This behavior occurs during operations such as text extraction from the PDF. The issue is resolved in pypdf version 6.14.1.
Potential Impact
An attacker can cause a denial of service by supplying a specially crafted PDF that triggers an infinite loop in the pypdf library. This results in uncontrolled resource consumption, potentially leading to application hang or crash when processing such PDFs. There is no indication of privilege escalation, data disclosure, or code execution from the provided data.
Mitigation Recommendations
Upgrade to pypdf version 6.14.1 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is in 6.14.1.
CVE-2026-59936: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.1, an attacker can craft a PDF with a page content stream containing a not terminated inline image, causing an infinite loop during inline image end marker detection such as when extracting page text. This issue is fixed in version 6.14.1.
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
The pypdf library, a pure-Python PDF processing tool, has a vulnerability classified as CWE-400 (Uncontrolled Resource Consumption). Versions before 6.14.1 allow an attacker to craft a malicious PDF with a page content stream containing an inline image that is not properly terminated. When pypdf processes this malformed PDF, it enters an infinite loop during the detection of the inline image's end marker, leading to denial of service through resource exhaustion. This behavior occurs during operations such as text extraction from the PDF. The issue is resolved in pypdf version 6.14.1.
Potential Impact
An attacker can cause a denial of service by supplying a specially crafted PDF that triggers an infinite loop in the pypdf library. This results in uncontrolled resource consumption, potentially leading to application hang or crash when processing such PDFs. There is no indication of privilege escalation, data disclosure, or code execution from the provided data.
Mitigation Recommendations
Upgrade to pypdf version 6.14.1 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is in 6.14.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T18:20:06.127Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4ea889c9d9e3dbe3a526b1
Added to database: 07/08/2026, 19:44:09 UTC
Last enriched: 07/16/2026, 10:20:13 UTC
Last updated: 08/22/2026, 10:52:10 UTC
Views: 76
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.