Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts malicious PDF file
-
DeliverySets trailer /Size to excessively large value
-
ExploitUser or system loads PDF in pypdf
-
InstallParser enters incremental mode
-
C2Algorithmic iteration over inflated object count
-
ExecuteResource exhaustion and application hang
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Excessive iteration
|
| Exploitation Conditions | The vulnerability requires loading a PDF file with a crafted large trailer /Size value while using incremental PDF update mode. Incremental mode is invoked when pypdf detects that a PDF has been appended to (a standard feature of the PDF format). The attacker must craft a PDF where the /Size value in the trailer dictionary is set to an arbitrarily large number, and the PDF must be supplied to pypdf in a context where it will be processed - this requires either direct user action to open the file in an application using pypdf or an automated system that processes PDFs without strict validation. No special configuration of pypdf is required; the vulnerability exists in the default parsing behavior. Exploitation is limited by the local attack vector (AV:L), meaning the attacker must have local file system access or the ability to convince a user to open the malicious PDF, and by the user interaction requirement (UI:P), which means the vulnerability cannot be exploited remotely or without user action. |
| Impact | This is a moderate-severity denial of service vulnerability with limited real-world impact. The CVSS 4.0 score of 4.8 reflects local attack vector (AV:L), low complexity (AC:L), and user interaction required (UI:P), with negligible confidentiality/integrity impact but low availability impact (VA:L). The local attack vector and requirement for user interaction to open a malicious PDF significantly reduces exploitability compared to network-accessible vulnerabilities. EPSS data is not provided, so exploitation probability cannot be benchmarked. No evidence of active exploitation (KEV status unknown; no CISA KEV listing in input). The attack requires deliberate user action to load a crafted PDF file, making this primarily a concern for applications that process untrusted PDF inputs automatically or where user education is weak. The low complexity and no-privilege requirements indicate that any user with access to the application can trigger the condition, but the local-only attack vector limits scope to on-premises or local-access scenarios. |
| Exploit ScenarioDerived | An attacker crafts a malicious PDF file with a trailer /Size entry set to an extremely large value (e.g., 2,147,483,647). When a user or automated system opens this PDF using an application built on pypdf versions prior to 6.10.2, the library enters incremental mode and begins processing the artificially inflated object count, causing the application to consume excessive CPU and memory resources and become unresponsive for extended periods. Publicly available exploit code exists in the form of the patch itself, which reveals exactly how to construct such a malicious PDF. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 23, 2026
Denial of service via algorithmic complexity in pypdf versions prior to 6.10.2 allows local attackers to cause long runtimes by crafting a PDF with an excessively large trailer /Size value when loaded in incremental mode. The vulnerability requires user interaction to load the malicious PDF and results in availability degradation rather than data compromise. Patch version 6.10.2 is available from the vendor.
RemediationAI
Upgrade pypdf to version 6.10.2 or later immediately. The vendor has released patched version 6.10.2 available at https://github.com/py-pdf/pypdf/releases/tag/6.10.2. As a workaround, users unable to upgrade immediately may manually apply the patch from the GitHub pull request at https://github.com/py-pdf/pypdf/pull/3735 or the specific commit at https://github.com/py-pdf/pypdf/commit/c50a0104cf083356f7c7f5d61410466a57f5c88a. For applications that process untrusted PDFs, implement input validation to reject PDFs with unreasonably large /Size values in the trailer dictionary (e.g., reject /Size values exceeding 1,000,000 objects) as a compensating control. This may reject some legitimately large PDFs but prevents algorithmic complexity attacks. Alternatively, implement timeout mechanisms on PDF parsing operations to limit processing time, though this may result in incomplete PDF processing.
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 processing library that implements PDF parsing according to the ISO 32000 specification. The vulnerability exists in the incremental PDF update mechanism, which allows PDFs to be modified by appending new content rather than rewriting the entire file. The /Size entry in a PDF's trailer dictionary specifies the total number of indirect objects in the file. When pypdf processes a PDF in incremental mode with a crafted /Size value set to an artificially large number, the parser allocates or iterates over resources based on this value, causing algorithmic complexity (CWE-834: Excessive Iteration) that leads to prolonged processing times. This affects the cross-reference table parsing and object lookup mechanisms.
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 GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
4DescriptionGitHub Advisory
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 long runtimes. This requires loading a PDF with a large trailer /Size value in incremental mode. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.
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.
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
Resource exhaustion in pypdf prior to 6.16.1 allows an attacker who can supply a crafted PDF to cause denial of service
Memory exhaustion in pypdf versions prior to 6.19.0 allows a remote, unauthenticated attacker to make an application una
Denial of service in pypdf versions prior to 6.19.0 allows an unauthenticated remote attacker to pin a PDF-processing wo
Denial of service in pypdf versions prior to 6.19.0 allows remote, unauthenticated attackers to exhaust application CPU
Denial of service in pypdf before 6.18.1 lets a crafted PDF drive the library's FlateDecode recovery path into inefficie
Memory exhaustion in pypdf versions prior to 6.18.1 lets a crafted PDF force the library to allocate and process far mor
Memory exhaustion in pypdf versions prior to 6.18.1 allows unauthenticated remote attackers to crash or degrade any appl
EUVD-2026-25114
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB