← News
Pypdf: memory exhaustion via crafted PDF
HighAI-generated2026-11-23
- CVE
- CVE-2026-134366
- Severity
- High (CVSS 7.5)
- Attack conditions
- Remotely, over the network · No account needed · No user action needed
- Exploitation probability (EPSS)
- 0.4% (within 30 days; FIRST EPSS, 27 November 2026)
Summary
Versions of pypdf prior to 7.0.0 can be forced to consume excessive memory by a malicious PDF file.
Details
According to the NVD record, pypdf before version 7.0.0 has a resource exhaustion flaw. The issue is triggered by specially crafted PDF cross-reference streams.
An attacker can create a PDF whose cross-reference stream offsets all point to a single large object. When an application parses such a file, it may allocate a huge amount of memory, potentially leading to denial-of-service conditions.
What to do
Upgrade to pypdf 7.0.0 or later.
Sources
Timeline
- 21 November 2026 NVD record published
- 23 November 2026 This article was written