Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft PDF with unterminated inline image
-
DeliverySubmit file to PDF-processing service
-
Exploitpypdf parses page content stream
-
ExecutionInline-image EI detection loops infinitely
-
PersistCPU exhausted, worker hangs
-
ImpactService denial for users
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 target application parse an attacker-supplied PDF using pypdf prior to 6.14.1, and specifically that it processes the page content stream - the documented trigger is page text extraction (e.g. extract_text), during which the inline-image end-marker detection runs. The concrete malicious element is a PDF page content stream containing an inline image (opened with 'BI') that is never terminated with an 'EI' end marker, driving the detection loop indefinitely. No authentication or user interaction is required (PR:N/UI:N) and default configurations are affected, so the practical limiting factor is simply whether the deployment feeds untrusted PDFs into pypdf's content-stream/text-extraction paths; purely metadata-only or non-parsing uses are less likely to reach the vulnerable code. |
| Impact | The signals are internally consistent for a pure availability issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H) yields 8.7 driven entirely by high availability impact with no confidentiality or integrity exposure - this is a hang/CPU-exhaustion bug, not code execution or data disclosure. Exploitation is trivial in the sense that no authentication, no user interaction, and no special preconditions are required beyond convincing the target application to parse an attacker-supplied PDF, which is common for services that ingest uploaded documents. No EPSS score was provided in the input, the CVE is not listed in CISA KEV, and no public exploit or POC was referenced, so real-world exploitation is unproven; the 'network' attack vector is a property of how the malicious file reaches the parser rather than a directly listening service. Practical priority is elevated for any internet-facing service that automatically extracts text from user-uploaded PDFs and moderate for batch/offline tooling where a single hung worker is easily contained. |
| Exploit ScenarioDerived | An attacker uploads a specially crafted PDF containing a page content stream with an inline image that is never terminated by an 'EI' marker to a service that extracts text from uploaded documents (for example a document-processing pipeline, search indexer, or resume parser). When the backend calls pypdf to extract page text, the inline-image scan enters an infinite loop, pinning a CPU core and hanging that worker; repeated submissions can exhaust the worker pool and deny service to legitimate users. No public POC was referenced, but the attack requires only the ability to submit a file and no authentication (PR:N, UI:N). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 08, 2026
Denial of service in the pypdf Python PDF library (all versions prior to 6.14.1) allows a remote attacker to hang a consuming application by supplying a malicious PDF. A page content stream containing an unterminated inline image drives the inline-image end-marker detection logic into an infinite loop, most notably triggered during page text extraction. No public exploit has been identified at time of analysis, but the CVSS 4.0 score of 8.7 reflects an unauthenticated, low-complexity availability attack, and a fixed release (6.14.1) is available.
RemediationAI
Upgrade to pypdf 6.14.1 or later, which fixes the inline-image end-marker loop (Vendor-released patch: 6.14.1; e.g. 'pip install --upgrade pypdf>=6.14.1'). The fix is confirmed by GitHub advisory GHSA-5xf7-4p34-54qr (https://github.com/py-pdf/pypdf/security/advisories/GHSA-5xf7-4p34-54qr), PR https://github.com/py-pdf/pypdf/pull/3891, commit ec3b14596186c40caca7cf8ab9b2155203e01b5b, and the 6.14.1 release notes (https://github.com/py-pdf/pypdf/releases/tag/6.14.1). Where immediate upgrading is not possible, apply compensating controls around untrusted PDF handling: run the parsing/text-extraction step in a separate worker process with a hard wall-clock timeout and CPU limit so a hung parse can be killed (trade-off: added complexity and per-document overhead), cap the size of accepted PDFs and rate-limit uploads to blunt amplification, and where feasible avoid or defer full-content text extraction on untrusted files until after upgrade. These controls bound impact but do not eliminate the underlying infinite loop, so patching remains the real fix.
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 widely used pure-Python library for reading, splitting, merging, and extracting content from PDF documents. The flaw lives in the parser that handles PDF inline images - small images embedded directly inside a page content stream between the 'BI' (Begin Image) and 'EI' (End Image) operators. The loop that scans forward looking for the 'EI' end marker fails to terminate when the marker is absent, matching CWE-400 (Uncontrolled Resource Consumption): the routine never reaches a stopping condition and spins indefinitely, consuming CPU. Because text extraction walks the content stream, any workflow that calls extract_text() (or similar operations that parse page content) on the crafted document triggers the hang. The affected package is identified by CPE cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:* covering all builds before the patch.
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
A crafted PDF reaches the parser with no auth or interaction (AV:N/PR:N/UI:N/AC:L); impact is an infinite-loop hang, so A:H only with C:N/I:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.1, an attacker can craft a PDF with a page content stream containing a not terminated inline image, causing an infinite loop during inline image end marker detection such as when extracting page text. This issue is fixed in version 6.14.1.
Blast Radius
ecosystem impact- 1 pypi packages depend on pypdf (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 6.14.1.
Articles & Coverage 1
Executive ViewAI
pypdf versions prior to 6.14.1 contain a denial of service vulnerability that allows unauthenticated attackers to hang applications by submitting malicious PDF files, particularly during text extraction operations. Any organization using this widely-deployed library risks service interruptions and operational disruption. A patch is available and should be deployed across all affected systems.
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
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
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-42366
GHSA-5xf7-4p34-54qr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB