Skip to main content

pypdf EUVDEUVD-2026-42344

| CVE-2026-59937 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-07-08 GitHub_M GHSA-55h5-xmcq-c37v
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted malformed PDF
  2. Delivery
    pypdf opens XRef recovery path
  3. Exploit
    Repeated malformed streams trigger unbounded loop
  4. Execution
    Worker thread/process CPU consumed
  5. Impact
    Application throughput degraded or service denied

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

The application must use pypdf to parse attacker-supplied PDF files - for example, accepting PDF uploads via a file upload endpoint, processing email attachments, or reading PDFs from user-controlled storage paths. No authentication is required by the vulnerability itself (CVSS PR:N); however, exploitation is limited to deployment contexts where untrusted parties can submit arbitrary PDF files to a system running an affected pypdf version. Applications that only process PDFs from trusted internal sources, or that validate PDF structure before parsing, are not realistically at risk. No specific non-default pypdf configuration is required - the vulnerable XRef recovery code path is triggered by the malformed stream structure alone.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VA:L) scores 6.9 (Medium), reflecting network-reachable, zero-complexity exploitation with no privileges required, but only low availability impact on the vulnerable system. The VA:L rating aligns with 'long runtimes' rather than an outright crash - a single malicious PDF may degrade performance significantly but may not cause a complete outage unless the application lacks timeouts or concurrency controls. EPSS data was not provided in available intelligence; KEV status is negative. No POC exploit has been identified. Real-world priority is elevated for any application that accepts PDF uploads from untrusted users without pre-processing size or structural limits, as an attacker can trivially trigger the condition with a crafted file. Services with strict per-request timeouts or worker process recycling will be partially self-protected. The absence of confidentiality and integrity impact (VC:N/VI:N) confirms this is a pure availability issue.

Exploit ScenarioDerived

An attacker targeting a web application that accepts PDF uploads - such as a document converter, invoice processor, or form handler - submits a specially crafted PDF containing dozens of repeated, intentionally malformed cross-reference streams. When the application passes the file to pypdf for parsing, the library's XRef recovery loop runs indefinitely or for an extremely long duration, monopolizing the worker thread or process. If the attacker repeats this with multiple concurrent uploads, the application's thread pool or worker queue becomes saturated, denying service to legitimate users. No public POC has been identified, but the attack concept is straightforward to implement given the advisory description.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Uncontrolled resource consumption in pypdf prior to 6.14.0 allows unauthenticated remote attackers to cause denial of service by submitting a crafted PDF containing repeated malformed cross-reference streams. The library's XRef table recovery routine performs unbounded work on such inputs, leading to excessive CPU time consumption and effectively hanging or severely degrading any application that processes attacker-supplied PDFs. No public exploit code has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Upgrade pypdf to version 6.14.0 or later, which resolves this issue via the fix in commit b5fc5aa714f4b696fb9b1deaa35a9e4a4eb50dae (PR #3887). The patched release is available at https://github.com/py-pdf/pypdf/releases/tag/6.14.0 and can be installed via pip using 'pip install pypdf>=6.14.0'. If immediate upgrade is not possible, compensating controls include enforcing strict per-request processing timeouts before invoking pypdf on untrusted input, running PDF parsing in isolated worker processes with wall-clock time limits and SIGALRM or concurrent.futures timeouts, and pre-screening uploaded PDFs with structural size limits on XRef stream counts. These workarounds add operational complexity and may reject some legitimate malformed-but-benign PDFs, but they reduce exposure until patching is complete.

Affected VersionsENISA

pypdf < 6.14.0

Affected Packages

pypi pypdf fix: 6.14.0

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 (CPE: cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*) is a pure-Python library for reading, writing, and manipulating PDF files. PDF files use cross-reference (XRef) tables or streams to index object locations within the file. When a PDF contains malformed or broken XRef streams, pypdf enters a recovery code path intended to reconstruct the object index. The root cause (CWE-400: Uncontrolled Resource Consumption) lies in this recovery routine failing to bound the number of iterations or time spent when processing repeated malformed XRef stream entries, allowing a crafted PDF to drive the parser into a near-infinite repair loop. The fix landed in commit b5fc5aa714f4b696fb9b1deaa35a9e4a4eb50dae via PR #3887 and was released in 6.14.0.

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 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Network-reachable via PDF submission, no privileges or interaction needed; availability impact is Low given 'long runtimes' rather than full crash.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 08, 2026 - 19:01 EUVD

DescriptionCVE.org

pypdf is a free and open-source pure-python PDF library. Prior to 6.14.0, an attacker can craft a PDF with repeated malformed cross-reference streams that cause pypdf to spend long runtimes recovering broken cross-reference table entries. This issue is fixed in version 6.14.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
popular Python PDF library, widely used in document-processing applications
Threat Intel
1
1 sources
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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