Limit bypass in pypdf lets crafted PDFs exhaust resources
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-400.
Summary
pypdf from 0 before 7.1.1 does not enforce cross-reference stream entry limits when parsing PDFs with hybrid cross-reference tables, because overly broad exception handling suppresses the limit violations. A remote attacker without privileges or user interaction can supply a crafted PDF that causes excessive cross-reference stream entries to be processed, exhausting resources (CWE-400).
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
pypdf before 7.1.1 does not enforce cross-reference stream entry limits when parsing PDFs with hybrid cross-reference tables, because overly broad exception handling suppresses the limit violations. Attackers can supply a crafted PDF that, when opened, causes excessive cross-reference stream entries to be processed, leading to uncontrolled resource consumption.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update pypdf to version 7.1.1, the fixed version listed for the pypdf package.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA pypdf (py-pdf) Fixed in 7.1.1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
py-pdf pypdf 7.1.1
5 records Highest priority Priority MEDIUM 5 MEDIUM
Other records, highest priority first
- TI-2026-104260 Memory exhaustion in pypdf inline image fallback parsingPriority MEDIUM 53
- TI-2026-104251 Excessive memory usage in pypdf via page label prefixPriority MEDIUM 53
- TI-2026-104229 Excessive memory usage in pypdf via cross-reference streamsPriority MEDIUM 53
Timeline
- 2026-12-04 Threatist record created from CVE-2026-145085
References
More py-pdf vulnerabilities
- TI-2026-79334 Exponential SVG use expansion exhausts CPU and memory in fpdf2 CVSS 3.1MEDIUM 6.5
- TI-2023-18601 Infinite Loop when reading malformed objects in pypdf CVSS 3.1MEDIUM 6.5
- TI-2023-18305 Infinite Loop when a comment isn't followed by a character in pypdf CVSS 3.1MEDIUM 6.2
- TI-2022-08670 Manipulated inline images can cause Infinite Loop in PyPDF2 CVSS 3.1MEDIUM 6.2
- TI-2026-104260 Memory exhaustion in pypdf inline image fallback parsing CVSS 4.0HIGH 8.7
- TI-2026-104251 Excessive memory usage in pypdf via page label prefix CVSS 4.0HIGH 8.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences