Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted cyclic PDF to app
-
ExploitApplication clones/duplicates DictionaryObject
-
ExecutionSource cycle evades visited-object check
-
ImpactInfinite loop exhausts CPU/memory
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
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 using pypdf prior to 6.21.4 perform a clone or duplicate operation on a DictionaryObject originating from an attacker-supplied PDF (e.g., PdfWriter.append/clone flows that duplicate dictionaries), and that PDF must contain a crafted cyclic DictionaryObject whose source cycle evades the destination-reference-based visited check. Limiting factors: the vulnerable code path is only reached when the host application actually clones/duplicates dictionaries from untrusted input (UI:P reflects that a user or application must process the malicious file); applications that only read without cloning, or that have upgraded to 6.21.4, are not affected. No authentication is required (PR:N), and the impact is confined to availability (process hang / resource exhaustion) with no data disclosure or modification. |
| Impact | This is a denial-of-service issue (CWE-835, uncontrolled infinite loop) in the pypdf library, and the available signals point to a real but moderate, non-emergency priority. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N, score 7.1) indicates a network-reachable, low-complexity trigger with no privileges but a required passive user/application interaction (UI:P), and impact limited strictly to availability (VA:H) - there is no confidentiality or integrity exposure. The vuln.today decision label is 'this_week', not act_now or emergency, which is consistent with a DoS-only outcome. No CISA KEV listing is present and no EPSS score was provided, so there is no evidence of active exploitation or widespread automated weaponization; absence of those signals is not itself an error but means real-world exploitation pressure is currently unquantified. A public PoC reference exists in the form of the fix PR (#4288), which includes a cycle-detection test that constructs a crafted cyclic PDF; it is not verified as working standalone exploit code. The signals are internally consistent (no conflicts): network vector plus required processing of an attacker-supplied PDF, availability-only impact, and a 'this_week' priority all align with a resource-exhaustion bug in a parsing library rather than a code-execution or data-breach flaw. |
| Exploit ScenarioDerived | An attacker supplies a crafted PDF containing a cyclic DictionaryObject (cyclic indirect references) to an application built on pypdf prior to 6.21.4. When that application clones or duplicates the dictionary - for example via a write/append or clone operation - the flawed traversal checks generated destination references instead of the original source references, so the source cycle evades the visited-object check and the clone recurses forever, hanging the process and exhausting CPU. A public PoC reference (the fix PR's cycle-detection test) demonstrates the crafted-PDF trigger, though it is not verified as a packaged working exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 29, 2026
Cloning or duplicating a crafted cyclic DictionaryObject with pypdf before 6.21.4 can hang the calling process in an infinite loop, exhausting CPU and stalling the thread that parses the PDF. The defect is a bookkeeping error in the clone traversal: the visited-set is populated from the generated destination references instead of the original source references, so certain cycles in an attacker-supplied PDF slip past the cycle check. Applications are affected only if they clone or duplicate dictionaries from untrusted PDFs (for example PdfWriter.append-style flows); unauthenticated attackers can trigger it by supplying a malicious file that a victim or application processes (CVSS 4.0 7.1, assessed CVSS 3.1 7.1, availability-only impact). No confirmed public exploit code was identified at time of analysis, and the upstream fix PR includes a regression test with a minimal crafted PDF that reproduces the hang. Fix is released in pypdf 6.21.4; the vuln.today decision label is this_week, indicating a moderate, non-emergency priority.
RemediationAI
Vendor-released patch: pypdf 6.21.4 (pin pypdf>=6.21.4 in requirements or lockfiles and rebuild any vendored copies); confirm the installed version with pip show pypdf since transitive pins can silently hold older releases. If upgrading is not immediately possible, the vendor's stated workaround is to apply the changes from PR #4288 (https://github.com/py-pdf/pypdf/pull/4288) - capturing cur_obj.indirect_reference as source_reference and using its idnum/generation for the visited-set check and insertion - which carries the trade-off of maintaining an unsupported local fork or patch that must be reconciled and dropped at the next real upgrade. Exposure is also bounded by the code path itself: per the assessed conditions, only applications that clone or duplicate dictionaries from attacker-supplied PDFs reach the flaw, so avoiding or gating clone/append processing of untrusted files (or isolating that processing so a hang cannot stall the primary service) limits the availability impact until the upgrade lands. No vendor-released patch outside 6.21.4 was identified in the available data.
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 library distributed on PyPI, and its generic layer models PDF objects such as DictionaryObject in pypdf/generic/_data_structures.py. Clone/duplicate operations must traverse object graphs, and because PDF indirect references can form cycles, the _clone routine keeps a visited set of (idnum, generation) pairs to terminate traversal. The root cause class is CWE-835 (Loop with Unreachable Exit Condition / uncontrolled infinite loop): the code captured the indirect reference of the freshly created clone rather than of the object currently being read from the source document. When the generated destination reference did not match the source-side cycle (or was still unset), the visited check never fired for that source node and traversal recursed forever. The upstream fix (PR #4288, commit f176db1a1f7f9af3e472e69a843ef1175653b044) adds a source_reference = cur_obj.indirect_reference capture and uses its idnum/generation for both the membership test and the visited-set insertion, so source-side cycles are detected. The accompanying regression test builds a six-object PDF whose streams reference each other via /N keys, wraps it in a strict five-second timeout, and asserts that a single page is appended. Impact is confined to availability (VC:N/VI:N/VA:H): there is no data disclosure or modification, and the trigger requires a clone/duplicate operation on untrusted content - applications that only read PDFs without cloning are outside the vulnerable path.
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
Network-reachable via a supplied PDF that the application must process and clone (UI:R), no auth (PR:N), low complexity, and availability-only impact (A:H) with no confidentiality or integrity effect.
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.4, pypdf can enter an infinite loop when cloning or duplicating a crafted cyclic DictionaryObject. Clone traversal checked generated destination references rather than the original source references, allowing some source cycles to evade the visited-object check. This issue is fixed in version 6.21.4.
Blast Radius
ecosystem impact- 547 pypi packages depend on pypdf (282 direct, 269 indirect)
Ecosystem-wide dependent count for version 6.21.4.
Technical POC Analysis
Evidence base: GHSA-mfr5-77xh-9j7h only.
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
CVE-2026-119205 is a high-severity denial-of-service vulnerability in pypdf versions before 6.21.4 that can cause an infinite loop and CPU exhaustion when processing maliciously crafted PDFs. Applications that clone PDF dictionaries from untrusted sources-such as document upload or processing services-are at risk, potentially causing service outages and operational disruption.
Apply vendor patch.
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
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-113377
GHSA-mfr5-77xh-9j7h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB