Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted PDF to pypdf parser
-
ExploitMany cross-reference streams retained in memory
-
ImpactMemory exhausted, 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 | Requires the target application to open and parse an attacker-controlled PDF using pypdf before version 7.1.1; the malicious file must contain many cross-reference streams, which pypdf keeps in memory unnecessarily. No authentication, privileges, or user interaction are needed (PR:N/UI:N) against any code path that parses untrusted PDF input. The practical limiting factor is reachability: the flaw is only exploitable where a vulnerable pypdf version actually processes attacker-supplied PDFs (e.g. an upload or document-ingestion feature); applications that parse only trusted internal PDFs are not meaningfully exposed. Impact is confined to resource exhaustion / denial of service (VA:H) - no data disclosure or modification. |
| Impact | This is an availability-only denial-of-service flaw (CWE-770 per NVD; CWE-400/CWE-409 per the GHSA advisory) in pypdf, scored CVSS 4.0 8.7 (High) with vector AV:N/AC:L/AT:N/PR:N/UI:N and impact limited to VA:H - no confidentiality or integrity effect. The network vector, low complexity, no required privileges and no user interaction make exploitation mechanically easy wherever an exposed service parses attacker-supplied PDFs, which is what drives the high numeric score. However, the real-world priority is tempered: the supplied decision label is 'this_week' (not act_now/emergency), the issue is not listed in CISA KEV, no EPSS probability was provided, and no public exploit or PoC reference is present in the input - only vendor/VulnCheck advisories. The practical blast radius is a crash or resource exhaustion of the parsing process, not code execution or data loss. Net: treat as a genuine but routine patch-this-week availability issue for services that ingest untrusted PDFs, rather than a drop-everything emergency. Note the CWE classification differs between NVD (CWE-770, uncontrolled resource allocation) and the GHSA advisory (CWE-400/CWE-409), though both describe the same memory-exhaustion behavior. |
| Exploit ScenarioDerived | An attacker submits a specially crafted PDF to an application that uses a vulnerable pypdf version to parse it (for example an upload, email-attachment, or document-processing endpoint). The file contains many cross-reference streams whose content pypdf retains in memory unnecessarily, driving memory consumption up until the worker or host exhausts memory and the service is denied. No authentication or user interaction is required (PR:N/UI:N), but no public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
Memory exhaustion in pypdf before 7.1.1 lets remote attackers deny service by supplying a crafted PDF containing many cross-reference streams whose content the parser retains in memory unnecessarily. Any application that opens attacker-controlled PDFs with a vulnerable release - an upload endpoint or document-ingestion pipeline, for example - can be driven to exhaust memory (availability impact only; no data disclosure or modification). Severity is High (CVSS 4.0 8.7; assessed CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) and no public exploit code or active exploitation has been identified at time of analysis; the practical limiting factor is reachability, since only deployments that actually parse untrusted PDFs are meaningfully exposed.
RemediationAI
Vendor-released patch: upgrade pypdf to 7.1.1 or later (pip install --upgrade 'pypdf>=7.1.1'), as documented in the 7.1.1 release and GHSA-5chg-c4f3-fw2p. If upgrading is not immediately possible, the vendor's stated workaround is to apply the changes from upstream PR #4456 (https://github.com/py-pdf/pypdf/pull/4456); note that this is a source-level backport that must be maintained against your pinned version rather than a tagged release. Because exploitation requires pypdf to parse an attacker-supplied file, limiting which inputs reach the vulnerable parser (for example, only accepting PDFs from trusted internal sources or enforcing process-level memory and request-time limits on the parsing service) reduces exposure until the upgrade is deployed, but these are containment measures with the trade-off of restricting legitimate uploads or terminating large jobs, not fixes for the underlying retention of cross-reference stream data.
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-processing services and web upload handlers. PDF 1.5 and later can store the document's cross-reference table as one or more cross-reference streams (/Type /XRef objects, described by /W and /Index entries), and a valid file may legally contain many of them, including update chains appended to the original document. Per the GHSA advisory, pypdf kept the content of these cross-reference streams in memory unnecessarily, so a file with a large number of such streams multiplies memory consumption during parsing. The defect class is resource handling: NVD assigns CWE-770 (allocation of resources without limits or throttling), while the upstream advisory classifies it as CWE-400 (uncontrolled resource consumption) and CWE-409 (improper handling of highly compressed data). The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VA:H only) reflects that no privileges or user interaction are needed once the library parses the hostile file, and that the resulting impact is confined to availability. The supplied sources do not describe the exact internal mechanism by which the retained stream data accumulates, only that the content is kept in memory unnecessarily.
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 reaches a network-exposed parser with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only memory exhaustion (A:H), no confidentiality or integrity effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
pypdf before 7.1.1 contains a resource exhaustion vulnerability that allows attackers to cause large memory usage through crafted PDF files. Attackers can supply a PDF with many cross-reference streams whose content is unnecessarily kept in memory, exhausting memory and causing denial of service.
Articles & Coverage 1
Technical POC Analysis
CWE-770 (Allocation of Resources Without Limits or Throttling) per the severity header; the upstream advisory classifies the same defect as CWE-400 (Uncontrolled Resource Consumption) and CWE-409 (Im…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The pypdf library (versions before 7.1.1) contains a memory exhaustion vulnerability that can be triggered by opening a maliciously crafted PDF, potentially causing a denial of service in any application that processes untrusted PDFs. Organizations relying on pypdf for document ingestion or file uploads face service disruptions, but exposure is limited to deployments that parse attacker-supplied PDFs; no data breach or active exploitation has been reported.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting PDF uploads to trusted sources, implementing file size and complexity limits, using memory quotas for parsing processes, and monitoring for abnormal memory usage in applications that process PDFs.
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-144314
NVD
CVE.org
GitHub
Exploit-DB