Skip to main content

pypdf CVE-2026-145060

| EUVDEUVD-2026-144314 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-12-04 VulnCheck
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted PDF to pypdf parser
  2. Exploit
    Many cross-reference streams retained in memory
  3. Impact
    Memory exhausted, denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation 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

Requires the target application to open and parse an attacker-controlled PDF using pypdf before version 7.1.1; the malicious file must contain many cross-reference streams, which pypdf keeps in memory unnecessarily. No authentication, privileges, or user interaction are needed (PR:N/UI:N) against any code path that parses untrusted PDF input. The practical limiting factor is reachability: the flaw is only exploitable where a vulnerable pypdf version actually processes attacker-supplied PDFs (e.g. an upload or document-ingestion feature); applications that parse only trusted internal PDFs are not meaningfully exposed. Impact is confined to resource exhaustion / denial of service (VA:H) - no data disclosure or modification.

Impact

This is an availability-only denial-of-service flaw (CWE-770 per NVD; CWE-400/CWE-409 per the GHSA advisory) in pypdf, scored CVSS 4.0 8.7 (High) with vector AV:N/AC:L/AT:N/PR:N/UI:N and impact limited to VA:H - no confidentiality or integrity effect. The network vector, low complexity, no required privileges and no user interaction make exploitation mechanically easy wherever an exposed service parses attacker-supplied PDFs, which is what drives the high numeric score. However, the real-world priority is tempered: the supplied decision label is 'this_week' (not act_now/emergency), the issue is not listed in CISA KEV, no EPSS probability was provided, and no public exploit or PoC reference is present in the input - only vendor/VulnCheck advisories. The practical blast radius is a crash or resource exhaustion of the parsing process, not code execution or data loss. Net: treat as a genuine but routine patch-this-week availability issue for services that ingest untrusted PDFs, rather than a drop-everything emergency. Note the CWE classification differs between NVD (CWE-770, uncontrolled resource allocation) and the GHSA advisory (CWE-400/CWE-409), though both describe the same memory-exhaustion behavior.

Exploit ScenarioDerived

An attacker submits a specially crafted PDF to an application that uses a vulnerable pypdf version to parse it (for example an upload, email-attachment, or document-processing endpoint). The file contains many cross-reference streams whose content pypdf retains in memory unnecessarily, driving memory consumption up until the worker or host exhausts memory and the service is denied. No authentication or user interaction is required (PR:N/UI:N), but no public exploit code was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

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

Alert me

AnalysisAIv1 – Dec 04, 2026

Memory exhaustion in pypdf before 7.1.1 lets remote attackers deny service by supplying a crafted PDF containing many cross-reference streams whose content the parser retains in memory unnecessarily. Any application that opens attacker-controlled PDFs with a vulnerable release - an upload endpoint or document-ingestion pipeline, for example - can be driven to exhaust memory (availability impact only; no data disclosure or modification). Severity is High (CVSS 4.0 8.7; assessed CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) and no public exploit code or active exploitation has been identified at time of analysis; the practical limiting factor is reachability, since only deployments that actually parse untrusted PDFs are meaningfully exposed.

RemediationAI

Vendor-released patch: upgrade pypdf to 7.1.1 or later (pip install --upgrade 'pypdf>=7.1.1'), as documented in the 7.1.1 release and GHSA-5chg-c4f3-fw2p. If upgrading is not immediately possible, the vendor's stated workaround is to apply the changes from upstream PR #4456 (https://github.com/py-pdf/pypdf/pull/4456); note that this is a source-level backport that must be maintained against your pinned version rather than a tagged release. Because exploitation requires pypdf to parse an attacker-supplied file, limiting which inputs reach the vulnerable parser (for example, only accepting PDFs from trusted internal sources or enforcing process-level memory and request-time limits on the parsing service) reduces exposure until the upgrade is deployed, but these are containment measures with the trade-off of restricting legitimate uploads or terminating large jobs, not fixes for the underlying retention of cross-reference stream data.

Affected VersionsENISA

pypdf 0 <7.1.1

Affected Packages

euvd pypdf fix: 7.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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 and writing PDF files, widely used as a dependency in document-processing services and web upload handlers. PDF 1.5 and later can store the document's cross-reference table as one or more cross-reference streams (/Type /XRef objects, described by /W and /Index entries), and a valid file may legally contain many of them, including update chains appended to the original document. Per the GHSA advisory, pypdf kept the content of these cross-reference streams in memory unnecessarily, so a file with a large number of such streams multiplies memory consumption during parsing. The defect class is resource handling: NVD assigns CWE-770 (allocation of resources without limits or throttling), while the upstream advisory classifies it as CWE-400 (uncontrolled resource consumption) and CWE-409 (improper handling of highly compressed data). The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VA:H only) reflects that no privileges or user interaction are needed once the library parses the hostile file, and that the resulting impact is confined to availability. The supplied sources do not describe the exact internal mechanism by which the retained stream data accumulates, only that the content is kept in memory unnecessarily.

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 (VulnCheck) 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

Attacker-supplied PDF reaches a network-exposed parser with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only memory exhaustion (A:H), no confidentiality or integrity effect.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

2
Patch available
Dec 04, 2026 - 17:18 EUVD
CVE Published
Dec 04, 2026 - 16:10 cve.org
HIGH 8.7

DescriptionCVE.org

pypdf before 7.1.1 contains a resource exhaustion vulnerability that allows attackers to cause large memory usage through crafted PDF files. Attackers can supply a PDF with many cross-reference streams whose content is unnecessarily kept in memory, exhausting memory and causing denial of service.

Technical POC Analysis

CWE-770 (Allocation of Resources Without Limits or Throttling) per the severity header; the upstream advisory classifies the same defect as CWE-400 (Uncontrolled Resource Consumption) and CWE-409 (Im…

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

The pypdf library (versions before 7.1.1) contains a memory exhaustion vulnerability that can be triggered by opening a maliciously crafted PDF, potentially causing a denial of service in any application that processes untrusted PDFs. Organizations relying on pypdf for document ingestion or file uploads face service disruptions, but exposure is limited to deployments that parse attacker-supplied PDFs; no data breach or active exploitation has been reported.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include restricting PDF uploads to trusted sources, implementing file size and complexity limits, using memory quotas for parsing processes, and monitoring for abnormal memory usage in applications that process PDFs.

Threat Intelligence Overview

Prevalence
Medium
very popular pure-Python PDF library, but embedded dependency not standalone product
Data Quality
4 sources
Confidence: Medium

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 N/A
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

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

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