Skip to main content

pypdf EUVDEUVD-2026-42365

| CVE-2026-59935 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-07-08 GitHub_M GHSA-g867-7843-wf8q
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft PDF with unterminated inline image
  2. Delivery
    Upload to PDF-processing service
  3. Exploit
    Parser decodes A85/AHx inline image
  4. Execution
    Loop never reaches exit condition
  5. Persist
    CPU-bound infinite loop
  6. Impact
    Worker pool exhausted, denial of service

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 the target application parse an attacker-supplied PDF with pypdf prior to 6.14.2 and reach the vulnerable code path - specifically page content-stream parsing such as page text extraction. The malicious PDF must contain an inline image whose data is not properly terminated and that declares an ASCII85 (A85) or ASCIIHex (AHx) filter; that specific malformed construct IS the trigger condition. Limiting factors: the impact is confined to denial of service (no code execution or data disclosure), and although the CVSS marks UI:N, real-world remote-unauthenticated exploitation depends on the application automatically ingesting untrusted PDFs - interactive desktop use would require a user to open the file. Any deployment that only processes trusted, internally generated PDFs is effectively not exposed.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VC:N/VI:N/VA:H) scores 8.7 (High) and cleanly reflects a pure availability impact: no confidentiality or integrity loss, no privileges, no user interaction assumed, low attack complexity. That profile is consistent with the description - a malicious PDF is all that is required, and any server-side pipeline that auto-processes uploaded documents can be triggered remotely without authentication. The real-world caveat is that the network/UI:N rating assumes the target automatically ingests attacker-controlled PDFs; in a purely interactive desktop use case a user would have to open the file, so effective exploitability depends on deployment. EPSS is not provided and there is no KEV listing or known public exploit, so likelihood signals are limited, but the impact is a hard single-threaded hang rather than a transient error, and it is easy to weaponize. Net assessment: a legitimate priority for any service that accepts and parses untrusted PDFs with pypdf, though it is a DoS ceiling only - no code execution or data exposure.

Exploit ScenarioDerived

An attacker uploads a crafted PDF to a web service that uses pypdf for text extraction (e.g., a resume parser, invoice ingester, or search indexer). When the backend calls page text extraction on the file, the ASCII85/ASCIIHex inline-image decoder enters an infinite loop, consuming a CPU core and stalling the worker; repeated uploads exhaust the worker pool and take the service offline. No authentication or user interaction is needed against an auto-processing pipeline, and no public exploit is currently required since the malformed structure is simple to construct.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

Denial of service in pypdf before 6.14.2 lets a remote attacker hang any application that parses an attacker-supplied PDF: a page content stream carrying an unterminated inline image with an ASCII85 or ASCIIHex filter drives the parser into an infinite loop (CWE-835), most notably during page text extraction. The pure-Python library is very widely used in document-processing and data-ingestion pipelines, so a single malicious file can pin a CPU core and stall the worker. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the root cause is well-described and trivially reproducible.

RemediationAI

Vendor-released patch: upgrade pypdf to 6.14.2 or later (pip install --upgrade 'pypdf>=6.14.2'), which fixes the unterminated-inline-image parsing loop; the fix is in PR https://github.com/py-pdf/pypdf/pull/3892 and commit 5a33a46416aa1ae6c025ff90a3cca57631fdafd2, described in advisory https://github.com/py-pdf/pypdf/security/advisories/GHSA-g867-7843-wf8q. If you cannot upgrade immediately, run pypdf parsing and text extraction in a separate worker process with a hard wall-clock timeout and CPU/memory limits so a hung parse can be killed and recycled rather than pinning your main service - the trade-off is added process-management overhead and latency. Where feasible, constrain or reject attacker-supplied PDFs (size limits, sandboxed execution) before extraction; note this reduces but does not eliminate exposure since the trigger is a small malformed structure, not a large file. These are compensating controls only - patching to 6.14.2 is the durable fix.

Affected VersionsENISA

pypdf < 6.14.2

Affected Packages

pypi pypdf fix: 6.14.2

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 library for reading, writing, and manipulating PDFs, commonly embedded in web backends, OCR/text-extraction pipelines, and ETL jobs. The flaw lives in the content-stream parser that decodes inline images (the PDF 'BI ... ID ... EI' construct). Inline image data can be wrapped in stream filters such as ASCII85Decode (/A85) or ASCIIHexDecode (/AHx); when the image is never properly terminated, the decoder loop that scans for the end-of-data marker never reaches its exit condition. This is a textbook CWE-835 (Loop with Unreachable Exit Condition / 'Infinite Loop'): the parser keeps consuming without ever satisfying the termination test, so the process spins indefinitely. The affected component is identified by CPE cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:* for all versions prior to 6.14.2.

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

Vendor (GitHub_M) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Untrusted PDF processed by server-side pipelines gives AV:N/PR:N/UI:N with low complexity; impact is a pure availability hang, so C:N/I:N/A:H and scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 6.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 08, 2026 - 21:04 EUVD

DescriptionCVE.org

pypdf is a free and open-source pure-python PDF library. Prior to 6.14.2, an attacker can craft a PDF with a page content stream containing a not terminated inline image that uses the ASCII85 or ASCIIHex filters, causing an infinite loop during parsing such as when extracting page text. This issue is fixed in version 6.14.2.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 14 pypi packages depend on pypdf (12 direct, 2 indirect)

Ecosystem-wide dependent count for version 6.14.2.

Executive ViewAI

Why It Matters

pypdf is widely deployed in organizational document-processing and data-ingestion infrastructure. A newly disclosed vulnerability (CVSS 8.7) creates risk of service disruption-attackers can render PDF-dependent workflows inoperative by distributing specially crafted files that consume CPU resources indefinitely. Organizations relying on this library face potential operational delays in critical document-handling and data-ingestion pipelines.

Business Impact: High
Compensating Controls

Apply vendor patch: pypdf version 6.14.2 or later.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
High
one of the most widely used pure-Python PDF libraries in backends
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Pypdf

View all
CVE-2026-84309 MEDIUM POC
6.9 Sep 01

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

CVE-2023-36810 MEDIUM POC
6.5 Jun 30

pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. Rat

CVE-2023-36807 MEDIUM POC
6.5 Jun 30

pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. Rat

CVE-2023-36464 MEDIUM POC
5.5 Jun 27

pypdf is an open source, pure-python PDF library. Rated medium severity (CVSS 5.5), this vulnerability is no authenticat

CVE-2026-84310 MEDIUM POC
4.8 Sep 01

Resource exhaustion in pypdf prior to 6.16.1 allows an attacker who can supply a crafted PDF to cause denial of service

CVE-2026-103000 HIGH
8.7 Sep 30

Memory exhaustion in pypdf versions prior to 6.19.0 allows a remote, unauthenticated attacker to make an application una

CVE-2026-102999 HIGH
8.7 Sep 30

Denial of service in pypdf versions prior to 6.19.0 allows an unauthenticated remote attacker to pin a PDF-processing wo

CVE-2026-102998 HIGH
8.7 Sep 30

Denial of service in pypdf versions prior to 6.19.0 allows remote, unauthenticated attackers to exhaust application CPU

CVE-2026-102997 HIGH
8.7 Sep 30

Denial of service in pypdf before 6.18.1 lets a crafted PDF drive the library's FlateDecode recovery path into inefficie

CVE-2026-102996 HIGH
8.7 Sep 30

Memory exhaustion in pypdf versions prior to 6.18.1 lets a crafted PDF force the library to allocate and process far mor

CVE-2026-102995 HIGH
8.7 Sep 30

Memory exhaustion in pypdf versions prior to 6.18.1 allows unauthenticated remote attackers to crash or degrade any appl

CVE-2026-102994 HIGH
8.7 Sep 30

Denial of service in pypdf versions prior to 6.18.0 allows remote, unauthenticated attackers to stall PDF parsing by sup

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy