Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted malformed PDF
-
Deliverypypdf opens XRef recovery path
-
ExploitRepeated malformed streams trigger unbounded loop
-
ExecutionWorker thread/process CPU consumed
-
ImpactApplication throughput degraded or service denied
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The application must use pypdf to parse attacker-supplied PDF files - for example, accepting PDF uploads via a file upload endpoint, processing email attachments, or reading PDFs from user-controlled storage paths. No authentication is required by the vulnerability itself (CVSS PR:N); however, exploitation is limited to deployment contexts where untrusted parties can submit arbitrary PDF files to a system running an affected pypdf version. Applications that only process PDFs from trusted internal sources, or that validate PDF structure before parsing, are not realistically at risk. No specific non-default pypdf configuration is required - the vulnerable XRef recovery code path is triggered by the malformed stream structure alone. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VA:L) scores 6.9 (Medium), reflecting network-reachable, zero-complexity exploitation with no privileges required, but only low availability impact on the vulnerable system. The VA:L rating aligns with 'long runtimes' rather than an outright crash - a single malicious PDF may degrade performance significantly but may not cause a complete outage unless the application lacks timeouts or concurrency controls. EPSS data was not provided in available intelligence; KEV status is negative. No POC exploit has been identified. Real-world priority is elevated for any application that accepts PDF uploads from untrusted users without pre-processing size or structural limits, as an attacker can trivially trigger the condition with a crafted file. Services with strict per-request timeouts or worker process recycling will be partially self-protected. The absence of confidentiality and integrity impact (VC:N/VI:N) confirms this is a pure availability issue. |
| Exploit ScenarioDerived | An attacker targeting a web application that accepts PDF uploads - such as a document converter, invoice processor, or form handler - submits a specially crafted PDF containing dozens of repeated, intentionally malformed cross-reference streams. When the application passes the file to pypdf for parsing, the library's XRef recovery loop runs indefinitely or for an extremely long duration, monopolizing the worker thread or process. If the attacker repeats this with multiple concurrent uploads, the application's thread pool or worker queue becomes saturated, denying service to legitimate users. No public POC has been identified, but the attack concept is straightforward to implement given the advisory description. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 08, 2026
Uncontrolled resource consumption in pypdf prior to 6.14.0 allows unauthenticated remote attackers to cause denial of service by submitting a crafted PDF containing repeated malformed cross-reference streams. The library's XRef table recovery routine performs unbounded work on such inputs, leading to excessive CPU time consumption and effectively hanging or severely degrading any application that processes attacker-supplied PDFs. No public exploit code has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.
RemediationAI
Upgrade pypdf to version 6.14.0 or later, which resolves this issue via the fix in commit b5fc5aa714f4b696fb9b1deaa35a9e4a4eb50dae (PR #3887). The patched release is available at https://github.com/py-pdf/pypdf/releases/tag/6.14.0 and can be installed via pip using 'pip install pypdf>=6.14.0'. If immediate upgrade is not possible, compensating controls include enforcing strict per-request processing timeouts before invoking pypdf on untrusted input, running PDF parsing in isolated worker processes with wall-clock time limits and SIGALRM or concurrent.futures timeouts, and pre-screening uploaded PDFs with structural size limits on XRef stream counts. These workarounds add operational complexity and may reject some legitimate malformed-but-benign PDFs, but they reduce exposure until patching is complete.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pypdf (CPE: cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*) is a pure-Python library for reading, writing, and manipulating PDF files. PDF files use cross-reference (XRef) tables or streams to index object locations within the file. When a PDF contains malformed or broken XRef streams, pypdf enters a recovery code path intended to reconstruct the object index. The root cause (CWE-400: Uncontrolled Resource Consumption) lies in this recovery routine failing to bound the number of iterations or time spent when processing repeated malformed XRef stream entries, allowing a crafted PDF to drive the parser into a near-infinite repair loop. The fix landed in commit b5fc5aa714f4b696fb9b1deaa35a9e4a4eb50dae via PR #3887 and was released in 6.14.0.
Know when Pypdf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Network-reachable via PDF submission, no privileges or interaction needed; availability impact is Low given 'long runtimes' rather than full crash.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.0, an attacker can craft a PDF with repeated malformed cross-reference streams that cause pypdf to spend long runtimes recovering broken cross-reference table entries. This issue is fixed in version 6.14.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Memory exhaustion while parsing crafted PDFs in pypdf versions prior to 6.21.3 allows an attacker to drive a consuming p
Denial of service in pypdf before 6.21.3: retrieving the page count (for example via len(reader.pages) or get_num_pages(
Memory exhaustion in the pypdf PDF library before 6.21.3 allows a small, deliberately malformed PDF dictionary to blow u
pypdf before 6.21.3 can be driven into excessive CPU consumption when an application retrieves page labels from a specia
Cloning or duplicating a crafted cyclic DictionaryObject with pypdf before 6.21.4 can hang the calling process in an inf
Parsing a crafted PDF with pypdf before 6.21.4 can drive disproportionate memory consumption when the library enumerates
Denial of service in pypdf prior to 6.21.4 lets remote attackers hang a PDF-processing thread by supplying an incomplete
Infinite loop denial of service in pypdf prior to 6.16.0 allows any attacker who can supply a crafted PDF to a pypdf-bas
Infinite loop denial-of-service in pypdf prior to 6.13.1 allows an attacker to hang any process that merges a crafted PD
pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. Rat
pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. Rat
pypdf is an open source, pure-python PDF library. Rated medium severity (CVSS 5.5), this vulnerability is no authenticat
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-42344
GHSA-55h5-xmcq-c37v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB