CVE-2026-57204: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
A vulnerability in the pypdf library prior to version 6.13.3 allows a denial of service (DoS) condition due to uncontrolled resource consumption. This occurs when a maliciously crafted PDF with a content stream lacking a /Length value causes excessive memory usage. The 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. Before version 6.13.3, the library could ignore the MAX_DECLARED_STREAM_LENGTH limit when parsing a content stream without a /Length attribute, leading to large memory usage and potential denial of service. This vulnerability can be triggered by processing a specially crafted PDF file. The issue was addressed and fixed in pypdf 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, potentially leading to application crashes or resource exhaustion. There is no indication of privilege escalation, code execution, or data disclosure from the provided data.
Mitigation Recommendations
Upgrade pypdf to version 6.13.3 or later, where this vulnerability has been fixed. No other mitigation or temporary workaround is indicated.
CVE-2026-57204: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf
Description
A vulnerability in the pypdf library prior to version 6.13.3 allows a denial of service (DoS) condition due to uncontrolled resource consumption. This occurs when a maliciously crafted PDF with a content stream lacking a /Length value causes excessive memory usage. The 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. Before version 6.13.3, the library could ignore the MAX_DECLARED_STREAM_LENGTH limit when parsing a content stream without a /Length attribute, leading to large memory usage and potential denial of service. This vulnerability can be triggered by processing a specially crafted PDF file. The issue was addressed and fixed in pypdf 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, potentially leading to application crashes or resource exhaustion. There is no indication of privilege escalation, code execution, or data disclosure from the provided data.
Mitigation Recommendations
Upgrade pypdf to version 6.13.3 or later, where this vulnerability has been fixed. No other mitigation or temporary 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: 06/30/2026, 22:21:24 UTC
Last updated: 06/30/2026, 22:21:24 UTC
Views: 3
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.