Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted PDF to pypdf-based service
-
DeliveryPDF contains XFA forms with many small fields
-
ExploitApplication loads XFA forms via pypdf
-
ExecutionMemory consumption grows excessively
-
ImpactProcess exhausts memory and denial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation 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 that an application use pypdf (version 2.4.2 up to but not including 7.0.0) to load/parse an attacker-supplied PDF, and specifically that the code path loading XFA forms is reached for that document. The concrete trigger is a PDF whose XFA forms contain many (possibly small) fields, causing disproportionate memory allocation during form loading. Limiting factors: the target must process untrusted PDFs and actually invoke XFA form loading, so applications that never handle XFA forms or never parse untrusted input are not exposed; impact is limited to memory-exhaustion denial of service (no data exposure or code execution). The CVSS vector indicates no authentication (PR:N) and no user interaction (UI:N) are required beyond getting the malicious PDF processed. |
| Impact | This is a genuine but bounded availability risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a network-reachable, low-complexity, unauthenticated trigger with no user interaction, and the impact is confined entirely to availability on the vulnerable system (VC:N/VI:N/VA:H) - consistent with a CWE-770/CWE-400 uncontrolled resource consumption (memory exhaustion) denial of service, with no confidentiality or integrity exposure and no code execution. The vuln.today decision label is 'this_week' rather than act_now/emergency, which aligns with a serious-but-not-crisis DoS. No EPSS score, CISA KEV entry, or SSVC exploitation/automatable values were supplied in the input, and no working exploit code is referenced - only a GHSA advisory and a VulnCheck advisory - so there is currently no evidence of active exploitation, only of a documented, patched weakness. The signals are internally consistent (high CVSS driven solely by the VA:H availability impact, moderate priority label, patch available), with the main caveat that real-world reachability depends on whether an exposed application actually parses untrusted PDFs and loads their XFA forms - the network vector assumes such a processing path exists. |
| Exploit ScenarioDerived | An attacker submits a crafted PDF containing XFA forms with a very large number of small fields to an application that uses pypdf to parse untrusted documents (e.g., an upload/ingestion or conversion service). When pypdf loads the XFA forms, memory consumption balloons, exhausting available memory and causing the worker or process to crash or hang, denying service to legitimate users. No public working exploit code is identified at time of analysis; the attack requires only the ability to get a malicious PDF processed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Memory exhaustion denial of service in the Python library pypdf (versions 2.4.2 up to but not including 7.0.0) allows a crafted PDF containing XFA forms with very many small fields to consume excessive memory when the forms are loaded, degrading or crashing the parsing process. The CVSS 4.0 vector (8.7) reflects a high availability-only impact with no confidentiality or integrity effect, and no authentication or user interaction is indicated by the vector beyond getting the document processed. Applications are exposed only if they actually parse untrusted PDFs and reach the XFA form-loading code path; no public exploit code was identified at time of analysis and there is no CISA KEV entry, so this is a bounded availability risk rather than an active campaign.
RemediationAI
Upgrade pypdf to 7.0.0 or later (fixed version per the upstream advisory and release tag https://github.com/py-pdf/pypdf/releases/tag/7.0.0); this is the vendor's stated complete fix. If upgrading immediately is not possible, the vendor suggests applying the changes from pull request #4363 (https://github.com/py-pdf/pypdf/pull/4363) as an interim backport, which carries the usual maintenance cost of carrying a patched fork until a release upgrade can be scheduled. Applications that do not require XFA support can reduce exposure by ensuring untrusted documents never reach the XFA form-loading path, since the memory growth occurs specifically during XFA form loading; the trade-off is loss of form-field extraction for those documents. Because exploitation requires the library to parse attacker-supplied PDFs, limiting PDF ingestion to trusted sources or isolating PDF parsing in a memory-capped worker process bounds the denial-of-service impact, at the cost of throughput and architectural complexity.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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 PDF files, widely used as a dependency in document pipelines, upload validators, and text-extraction services. XFA (XML Forms Architecture) is an XML-based form format embedded in PDFs; when pypdf loads XFA form data it constructs in-memory representations of the form and its fields. The flaw is an uncontrolled resource consumption issue (CWE-770 per the CVE record; the upstream GHSA classifies it as CWE-400) in which the number of fields in an attacker-supplied XFA form is not adequately bounded, so a document with many, individually small fields causes disproportionate memory allocation during form loading rather than allocation proportional to file size. Because the impact is confined to memory consumption, the assessed CVSS 3.1 vector shows A:H with C:N and I:N, and the trigger requires the host application to invoke the XFA form-loading path on untrusted input - applications that never process XFA forms or never parse third-party PDFs are not on the vulnerable path. The precise internal allocation mechanism is not 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:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Attacker-supplied PDF parsed over a network path with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is pure memory-exhaustion DoS, so C:N/I:N/A:H and scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
pypdf 2.4.2 before 7.0.0 contains a resource exhaustion vulnerability in its handling of XFA forms that allows attackers to cause excessive memory consumption. Attackers can supply a crafted PDF containing XFA forms with many small fields so that loading the forms consumes large amounts of memory, causing a denial of service.
Technical POC Analysis
Evidence caveat: the only artefact supplied is advisory GHSA-cmpx-464x-82c3 plus the CVE summary.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity memory exhaustion vulnerability in the pypdf library (versions 2.4.2 to 6.x) can be triggered by a crafted PDF containing excessive XFA form fields, leading to denial-of-service conditions. Any internal application that parses untrusted PDFs using an affected version is at risk of degraded performance or crashes, potentially disrupting document processing workflows. Leadership should prioritize remediation because this availability-only issue could cause localized service interruptions without confidentiality or integrity impact.
No vendor-released patch identified at time of analysis. Interim mitigations include isolating PDF processing in resource-constrained sandboxes, enforcing memory and time limits, and avoiding parsing of untrusted PDFs until an upgrade to pypdf 7.0.0 is possible.
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
EUVD-2026-132545
GHSA-628g-x9hq-c9c9
NVD
CVE.org
EPSS
VulDB
Exploit-DB