CVE-2026-57204: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAX_DECLARED_STREAM_LENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. This issue has been fixed in version 6.13.3.
AI Analysis
Technical Summary
CVE-2026-57204 is an uncontrolled resource consumption vulnerability (CWE-400) in the pypdf Python library. When parsing a maliciously crafted PDF lacking a /Length value in a content stream, the library may ignore the MAX_DECLARED_STREAM_LENGTH limit, causing large memory usage and potential denial of service. This vulnerability affects all pypdf versions prior to 6.13.3 and has been resolved in version 6.13.3.
Potential Impact
An attacker can cause a denial of service by crafting a PDF that triggers excessive memory consumption during parsing. This can lead to application crashes or degraded performance due to resource exhaustion. There is no indication of privilege escalation, data disclosure, or code execution from this vulnerability.
Mitigation Recommendations
Upgrade to pypdf version 6.13.3 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated.
CVE-2026-57204: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAX_DECLARED_STREAM_LENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. This issue has been fixed in version 6.13.3.
CVSS v4.0
Score 6.9medium
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-57204 is an uncontrolled resource consumption vulnerability (CWE-400) in the pypdf Python library. When parsing a maliciously crafted PDF lacking a /Length value in a content stream, the library may ignore the MAX_DECLARED_STREAM_LENGTH limit, causing large memory usage and potential denial of service. This vulnerability affects all pypdf versions prior to 6.13.3 and has been resolved in version 6.13.3.
Potential Impact
An attacker can cause a denial of service by crafting a PDF that triggers excessive memory consumption during parsing. This can lead to application crashes or degraded performance due to resource exhaustion. There is no indication of privilege escalation, data disclosure, or code execution from this vulnerability.
Mitigation Recommendations
Upgrade to pypdf version 6.13.3 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T02:00:46.801Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a443df227e9c7971976778e
Added to database: 06/30/2026, 22:06:42 UTC
Last enriched: 07/08/2026, 12:43:49 UTC
Last updated: 08/09/2026, 14:47:37 UTC
Views: 71
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.