Excessive memory usage in pypdf via crafted PDF images
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-770.
Summary
pypdf before 7.0.1 contains a resource exhaustion flaw in image loading because data size estimates for some image modes are too low, which defeats the limits applied to filters that have no size limit of their own. An unauthenticated remote attacker can craft a PDF whose images cause large memory usage and denial of service when loaded. The weakness is classified as CWE-770.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
pypdf before 7.0.1 contains a resource exhaustion vulnerability in image loading because data size estimates for some image modes are too low, defeating limits for filters without their own size limit. Attackers can craft a PDF whose images, when loaded, cause large memory usage and denial of service.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade pypdf to version 7.0.1, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- Fix · CNA pypdf (py-pdf) Fixed in 7.0.1
Timeline
- 2026-11-26 Threatist record created from CVE-2026-137549
- 2026-11-27 Alias added: GHSA-2h3q-556f-6j9h
- 2026-11-27 CISA SSVC decision points changed
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-65557 pypdf: Possible large memory usage when retrieving alphabetical page labels CVSS 4.0HIGH 8.7
- TI-2026-65556 pypdf: Possible long runtimes with large amount of embedded files CVSS 4.0HIGH 8.7
Sources
- CVE-2026-137549 · CVE Program
- CVE-2026-137549 · NVD
- FIRST EPSS
- GHSA-2h3q-556f-6j9h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences