Skip to main content

pypdf CVE-2026-59936

| EUVDEUVD-2026-42366 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-07-08 GitHub_M GHSA-5xf7-4p34-54qr
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
    Submit file to PDF-processing service
  3. Exploit
    pypdf parses page content stream
  4. Execution
    Inline-image EI detection loops infinitely
  5. Persist
    CPU exhausted, worker hangs
  6. Impact
    Service 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).

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 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

pypdf < 6.14.1

Affected Packages

pypi pypdf fix: 6.14.1

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

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

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.

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.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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
High
pypdf is a very widely used Python PDF library on PyPI
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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-119209 HIGH POC
7.1 Oct 29

Memory exhaustion while parsing crafted PDFs in pypdf versions prior to 6.21.3 allows an attacker to drive a consuming p

CVE-2026-119208 HIGH POC
7.1 Oct 29

Denial of service in pypdf before 6.21.3: retrieving the page count (for example via len(reader.pages) or get_num_pages(

CVE-2026-119207 HIGH POC
7.1 Oct 29

Memory exhaustion in the pypdf PDF library before 6.21.3 allows a small, deliberately malformed PDF dictionary to blow u

CVE-2026-119206 HIGH POC
7.1 Oct 29

pypdf before 6.21.3 can be driven into excessive CPU consumption when an application retrieves page labels from a specia

CVE-2026-119205 HIGH POC
7.1 Oct 29

Cloning or duplicating a crafted cyclic DictionaryObject with pypdf before 6.21.4 can hang the calling process in an inf

CVE-2026-119204 HIGH POC
7.1 Oct 29

Parsing a crafted PDF with pypdf before 6.21.4 can drive disproportionate memory consumption when the library enumerates

CVE-2026-119203 HIGH POC
7.1 Oct 29

Denial of service in pypdf prior to 6.21.4 lets remote attackers hang a PDF-processing thread by supplying an incomplete

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-2026-54651 MEDIUM POC
6.9 Jun 22

Infinite loop denial-of-service in pypdf prior to 6.13.1 allows an attacker to hang any process that merges a crafted PD

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

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