Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver small crafted malformed PDF
-
ExploitApplication loads it with pypdf strict mode
-
ExecutionNested parse failures amplify exception text
-
ImpactMemory exhaustion denial of service
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 | Exploitation requires the target application to call pypdf's reader with strict mode enabled (strict=True) and to load an attacker-supplied PDF containing a crafted invalid dictionary; the vulnerable amplification occurs only on that strict-mode parsing path. This is a non-default configuration (pypdf's strict flag defaults to off), which is the primary limiting factor. Additionally, UI:P/UI:R means a user or automated workflow must actually ingest the malicious file; there is no self-propagating or fully passive trigger. Affected versions are pypdf < 6.21.3; upgrading to 6.21.3 is the fix, with PR #4265 available as a backportable workaround per the advisory. |
| Impact | This is a denial-of-service issue (CWE-400/CWE-405, uncontrolled resource consumption) with real but bounded risk. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VA:H, score 7.1) shows availability-only impact with no confidentiality or integrity effect and a passive user-interaction requirement - the victim application must load the attacker's PDF. The vuln.today Decision label is 'this_week' (not act_now/emergency), and no EPSS score, CISA KEV listing, or SSVC exploitation/automatable data was provided, so there is no signal of active exploitation. The references (GHSA advisory, fix PR #4265, commit, and 6.21.3 release) are remediation artifacts, not exploit code; no public exploit identified at time of analysis. A key limiting factor the raw CVSS does not capture: the description and advisory both state the condition is 'strict mode' loading an invalid dictionary, and strict mode is not pypdf's default - this materially narrows the exploitable population below what AV:N/PR:N alone implies. Net: a legitimate availability bug worth patching on a normal cycle, but not a drop-everything priority, and the network vector should be read together with the strict-mode precondition rather than as unconditional remote DoS. |
| Exploit ScenarioDerived | An attacker submits a small, specially crafted PDF containing an invalid dictionary to a service or application that parses PDFs with pypdf in strict mode. During parsing, nested failures repeatedly concatenate prior exception text into newly raised errors, so the tiny malformed input amplifies into very large in-memory error strings, exhausting memory and causing a denial of service. No public exploit code is identified; only the vendor fix and advisory are published. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 29, 2026
Memory exhaustion in the pypdf PDF library before 6.21.3 allows a small, deliberately malformed PDF dictionary to blow up into very large exception messages, exhausting process memory and denying service to the host application. Only applications that enable the library's non-default strict parsing mode (strict=True) and ingest an attacker-supplied PDF are exposed, since the amplification happens on that strict-mode path; the CVSS 4.0 score is 7.1 and our assessment maps to CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, i.e. availability-only impact. No public exploit code was identified at time of analysis, and the issue is not on CISA KEV; version 6.21.3 resolves it, with PR #4265 available as a backportable workaround.
RemediationAI
Upgrade to pypdf 6.21.3 or later: vendor-released patch 6.21.3 (see https://github.com/py-pdf/pypdf/releases/tag/6.21.3 and advisory GHSA-4vqv-7265-gm2w). If upgrading immediately is not possible, the advisory recommends applying the changes from PR #4265 (https://github.com/py-pdf/pypdf/pull/4265, commit 64270258c0eced720f7960aecf8cef31afd39f8d) as a backportable workaround, which narrows the broad exception handlers and re-raises MemoryError so exception text is no longer amplified. As an additional compensating measure, do not enable strict mode when parsing untrusted PDFs: the amplification only occurs on the strict=True path, and pypdf defaults this flag to off, so leaving it disabled keeps the application off the vulnerable path, at the trade-off that the parser becomes more lenient and will silently accept malformed or out-of-spec structures instead of rejecting them, which may shift problems downstream. Where untrusted uploads must be parsed with strict mode, run the reader in a worker with a hard memory cap and request timeout so an exhausting document kills only that worker rather than the whole service.
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 library for reading and writing PDFs, and its reader performs structural validation of dictionaries, cross-reference tables and encoding maps. This is CWE-400 (uncontrolled resource consumption), with the advisory also tagging CWE-405 (asymmetric resource consumption/amplification). The root cause is exception-handling design rather than a memory-safety bug: parsing routines caught broad except Exception blocks and re-raised new errors that embedded the text of the previously raised exception, so a single crafted invalid dictionary triggers a chain of nested parsing failures whose message text is repeatedly copied into each newly raised error. A few bytes of malformed input therefore expand into megabyte-scale strings, and memory use grows with the depth of the failure chain. The upstream fix in PR #4265, shipped in 6.21.3, replaces broad exception catches with narrow ones (KeyError, ValueError, UnicodeDecodeError, UnicodeEncodeError) and explicitly re-raises MemoryError instead of catching and wrapping it, which stops the message amplification. The CPE cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:* covers all releases below 6.21.3; the trigger conditions beyond 'a crafted invalid dictionary must be loaded' are not further described in the available sources.
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:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Attacker-supplied PDF reaches the parser remotely with no privileges (AV:N/PR:N); a user/app must load the file (UI:R); availability-only impact (A:H), no C/I.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.3, pypdf can consume excessive memory when strict mode loads a crafted invalid PDF dictionary. Nested parsing failures add repeated exception text to newly raised errors, allowing a small malformed dictionary to amplify into very large error messages. This issue is fixed in version 6.21.3.
Blast Radius
ecosystem impact- 1 pypi packages depend on pypdf (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 6.21.3.
Technical POC Analysis
Evidence caveat: the only supplied artifact is advisory GHSA-4vqv-7265-gm2w.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
A high-severity memory exhaustion vulnerability (CVE-2026-119207) in the open-source pypdf library could allow an attacker to crash applications that process PDFs in strict parsing mode, causing service disruptions. This affects only systems that have explicitly enabled the non-default strict mode, but for those, successful exploitation can take the application offline. Leadership should prioritize patching to maintain availability of PDF-dependent business processes.
Apply vendor patch. If patching is delayed, disable strict=True in pypdf configurations or apply the workaround from PR #4265.
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(
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
Resource exhaustion in pypdf prior to 6.16.1 allows an attacker who can supply a crafted PDF to cause denial of service
EUVD-2026-113379
GHSA-4vqv-7265-gm2w
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB