Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious PDF with oversized predictor parameters
-
DeliveryDistribute PDF to target user
-
ExploitUser opens PDF in vulnerable pypdf application
-
Installpypdf decompresses stream with unvalidated predictor parameters
-
C2Excessive memory allocation triggered
-
ExecuteSystem RAM exhausted
-
ImpactApplication crash or system unresponsiveness
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | User interaction is required - the malicious PDF must be opened or processed by a user or application using the vulnerable pypdf library. The PDF must contain a /FlateDecode stream with a /Predictor value not equal to 1 and deliberately large or malicious predictor parameters (such as /Columns, /Colors, or /BitsPerComponent set to values that cause memory allocation to exceed available resources). Exploitation is limited to local attack vector; the vulnerability cannot be triggered remotely. Default configurations of pypdf are vulnerable - no special configuration is required to enable the vulnerability, but processing of untrusted PDFs is the trigger. Applications that do not process external or untrusted PDFs are not at risk. |
| Impact | This vulnerability presents moderate real-world risk with important caveats. CVSS 4.8 with local attack vector (AV:L), low complexity (AC:L), no privileges required (PR:N), and user interaction (UI:P) correctly reflects that an attacker must trick a user into opening a malicious PDF. The impact is availability only (VA:L - low availability impact), not confidentiality or integrity. EPSS data not provided, preventing exploitation probability assessment. CWE-789 (memory allocation with excessive size) is a well-known denial-of-service vector. The presence of a patched version and GitHub advisory indicates this was responsibly disclosed. However, the local attack vector combined with required user interaction significantly limits exploitability compared to network-based attacks. This is a denial-of-service vulnerability affecting availability, not a code execution or data breach risk. Organizations using pypdf in automated batch-processing scenarios (where a user opening a PDF is not required) should prioritize patching; interactive PDF readers using pypdf should also patch, but risk is lower than for library consumers processing untrusted PDFs programmatically without user involvement. |
| Exploit ScenarioDerived | An attacker crafts a PDF file containing a stream compressed with /FlateDecode and predictor parameters configured to cause excessive memory allocation. The attacker distributes this PDF via email or file-sharing, and a user opens it in an application using the vulnerable pypdf library. As the application processes the stream, pypdf allocates massive amounts of memory during decompression and predictor application, exhausting available RAM and causing the application or system to become unresponsive or crash. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 23, 2026
Memory exhaustion in pypdf prior to 6.10.2 allows local attackers to craft malicious PDF files that exhaust system RAM when processed. The vulnerability requires user interaction to open a specially crafted PDF containing a /FlateDecode stream with a /Predictor value other than 1 and large predictor parameters. Vendor-released patch available in version 6.10.2.
RemediationAI
Upgrade pypdf to version 6.10.2 or later immediately. For users unable to upgrade immediately, apply the patch changes manually from commit ac734dab4eef92bcce50d503949b4d9887d89f11 (https://github.com/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11), which implements proper validation of predictor parameters. The patch validates that predictor parameters do not cause excessive memory allocation during stream decompression. As an interim compensating control, restrict access to PDF processing to trusted sources only and implement file size limits on uploaded or processed PDFs to reduce the likelihood of triggering the memory exhaustion. Monitor system memory usage during PDF processing and set resource limits (ulimit on Linux) to prevent complete system resource exhaustion if a malicious PDF is processed. Note that these controls reduce risk but do not eliminate the vulnerability - patching remains the primary remediation.
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 is a pure-Python PDF library that processes PDF streams, including those using FlateDecode compression with predictor functions. The vulnerability lies in improper handling of /Predictor parameters in compressed streams. When a stream uses /FlateDecode compression with a /Predictor unequal to 1 and large predictor parameters, the decompression and predictor application logic fails to validate or limit memory allocation, leading to CWE-789 (Memory Allocation with Excessive Size Value). The predictor function in PDF streams is used to filter data during compression; improper parameter validation allows an attacker to specify predictor parameters that cause the library to allocate excessive memory during decompression.
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:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.org
pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.2 can craft a PDF which leads to the RAM being exhausted. This requires accessing a stream compressed using /FlateDecode with a /Predictor unequal 1 and large predictor parameters. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.
Blast Radius
ecosystem impact- 23 pypi packages depend on pypdf (17 direct, 6 indirect)
Ecosystem-wide dependent count for version 6.10.2.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
EUVD-2026-25112
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB