Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft PDF with self-referencing form XObject
-
DeliveryDeliver PDF to application accepting untrusted uploads
-
ExploitApplication calls extract_text() on the affected page
-
ExecutionRecursive XObject resolution enters infinite loop
-
PersistHeap memory exhausted
-
ImpactApplication process crashes or is OOM-killed
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 that the vulnerable application calls |
| Impact | No CVSS vector or EPSS score was provided in the source data, so risk metrics are independently assessed rather than sourced from NVD or vendor. Structurally, the attack complexity is low: crafting the malicious PDF requires only embedding a self-referential XObject resource dictionary, a technique fully reverse-engineerable from the public PR diff. No authentication or privileges are required if the target application accepts PDF uploads from unauthenticated users. Impact is confined to availability - memory exhaustion causing process crash or OOM kill - with no confidentiality or integrity consequences. Risk is highest for web services and automated document pipelines that process untrusted PDFs and call |
| Exploit ScenarioDerived | An attacker uploads a crafted PDF to a document processing web application that uses pypdf to index page text. The PDF contains a form XObject whose |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 16, 2026
Uncontrolled resource consumption in pypdf versions before 6.12.2 allows any attacker who can cause an application to call extract_text() on a crafted PDF to trigger unbounded memory growth, resulting in denial of service. The vulnerability arises specifically during form XObject traversal: a PDF containing a self-referencing XObject resource dictionary causes the extraction code to recurse infinitely without cycle detection. No public exploit code has been identified at time of analysis, and this vulnerability does not appear in the CISA KEV catalog.
RemediationAI
Upgrade to pypdf 6.12.2 or later, released at https://github.com/py-pdf/pypdf/releases/tag/6.12.2 - this is the definitive fix. If an immediate upgrade is not possible, the patch changes from PR #3805 (https://github.com/py-pdf/pypdf/pull/3805) can be applied manually to pypdf/_page.py; the change threads a known_ids set through _extract_text() and extract_xform_text() to detect and short-circuit cyclic XObject references. As a compensating control without code changes, enforce per-process memory limits before calling extract_text() on untrusted PDFs using OS-level ulimits or container memory caps (e.g., Docker --memory); this limits blast radius but does not prevent the vulnerability. Isolating extraction in a subprocess with a memory ceiling and timeout is the most robust compensating control - the trade-off is added latency and process-spawn overhead. Disabling or gating extract_text() calls on PDFs from untrusted sources is also effective if text extraction is not required for all inputs.
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 manipulation library distributed via pip (pkg:pip/pypdf). The affected code path is the _extract_text() and extract_xform_text() methods in pypdf/_page.py. PDF form XObjects (dictionary entries with /Subtype /Form) are reusable content streams embedded in a page's resource dictionary that the text extractor recursively processes. Prior to the fix, no visited-node tracking was maintained across recursive calls, so a form XObject whose /Resources /XObject dictionary included a reference back to itself could drive infinite recursion and unbounded heap allocation. CWE-400 (Uncontrolled Resource Consumption) precisely describes the root cause: the code placed no upper bound on XObject traversal depth or memory consumption. The PR #3805 fix introduces a known_ids set (keyed on Python object identity via id(xform)) threaded through the call chain; detection of a cycle causes the code to emit a warning and return an empty string rather than recurse.
Know when the next one hits your stack
- 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:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Network-delivered PDF triggers memory exhaustion with no authentication or user interaction required; only availability is impacted.
Primary rating from Vendor (https://github.com/py-pdf/pypdf).
CVSS VectorVendor: https://github.com/py-pdf/pypdf
Lifecycle Timeline
1DescriptionCVE.org
Impact
An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting the text of a page which contains a form XObject with self-references.
Patches
This has been fixed in pypdf==6.12.2.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #3805.
Blast Radius
ecosystem impact- 2 pypi packages depend on pypdf (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 6.12.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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-38356
GHSA-j543-4vmf-qm7v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB