Skip to main content

pypdf EUVDEUVD-2026-113379

| CVE-2026-119207 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-10-29 GitHub_M GHSA-4vqv-7265-gm2w
7.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Deliver small crafted malformed PDF
  2. Exploit
    Application loads it with pypdf strict mode
  3. Execution
    Nested parse failures amplify exception text
  4. Impact
    Memory exhaustion denial of service

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 the target application to call pypdf's reader with strict mode enabled (strict=True) and to load an attacker-supplied PDF containing a crafted invalid dictionary; the vulnerable amplification occurs only on that strict-mode parsing path. This is a non-default configuration (pypdf's strict flag defaults to off), which is the primary limiting factor. Additionally, UI:P/UI:R means a user or automated workflow must actually ingest the malicious file; there is no self-propagating or fully passive trigger. Affected versions are pypdf < 6.21.3; upgrading to 6.21.3 is the fix, with PR #4265 available as a backportable workaround per the advisory.

Impact

This is a denial-of-service issue (CWE-400/CWE-405, uncontrolled resource consumption) with real but bounded risk. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VA:H, score 7.1) shows availability-only impact with no confidentiality or integrity effect and a passive user-interaction requirement - the victim application must load the attacker's PDF. The vuln.today Decision label is 'this_week' (not act_now/emergency), and no EPSS score, CISA KEV listing, or SSVC exploitation/automatable data was provided, so there is no signal of active exploitation. The references (GHSA advisory, fix PR #4265, commit, and 6.21.3 release) are remediation artifacts, not exploit code; no public exploit identified at time of analysis. A key limiting factor the raw CVSS does not capture: the description and advisory both state the condition is 'strict mode' loading an invalid dictionary, and strict mode is not pypdf's default - this materially narrows the exploitable population below what AV:N/PR:N alone implies. Net: a legitimate availability bug worth patching on a normal cycle, but not a drop-everything priority, and the network vector should be read together with the strict-mode precondition rather than as unconditional remote DoS.

Exploit ScenarioDerived

An attacker submits a small, specially crafted PDF containing an invalid dictionary to a service or application that parses PDFs with pypdf in strict mode. During parsing, nested failures repeatedly concatenate prior exception text into newly raised errors, so the tiny malformed input amplifies into very large in-memory error strings, exhausting memory and causing a denial of service. No public exploit code is identified; only the vendor fix and advisory are published.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) 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 – Oct 29, 2026

Memory exhaustion in the pypdf PDF library before 6.21.3 allows a small, deliberately malformed PDF dictionary to blow up into very large exception messages, exhausting process memory and denying service to the host application. Only applications that enable the library's non-default strict parsing mode (strict=True) and ingest an attacker-supplied PDF are exposed, since the amplification happens on that strict-mode path; the CVSS 4.0 score is 7.1 and our assessment maps to CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, i.e. availability-only impact. No public exploit code was identified at time of analysis, and the issue is not on CISA KEV; version 6.21.3 resolves it, with PR #4265 available as a backportable workaround.

RemediationAI

Upgrade to pypdf 6.21.3 or later: vendor-released patch 6.21.3 (see https://github.com/py-pdf/pypdf/releases/tag/6.21.3 and advisory GHSA-4vqv-7265-gm2w). If upgrading immediately is not possible, the advisory recommends applying the changes from PR #4265 (https://github.com/py-pdf/pypdf/pull/4265, commit 64270258c0eced720f7960aecf8cef31afd39f8d) as a backportable workaround, which narrows the broad exception handlers and re-raises MemoryError so exception text is no longer amplified. As an additional compensating measure, do not enable strict mode when parsing untrusted PDFs: the amplification only occurs on the strict=True path, and pypdf defaults this flag to off, so leaving it disabled keeps the application off the vulnerable path, at the trade-off that the parser becomes more lenient and will silently accept malformed or out-of-spec structures instead of rejecting them, which may shift problems downstream. Where untrusted uploads must be parsed with strict mode, run the reader in a worker with a hard memory cap and request timeout so an exhausting document kills only that worker rather than the whole service.

Affected VersionsENISA

pypdf < 6.21.3

Affected Packages

pypi pypdf fix: 6.21.3

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 and writing PDFs, and its reader performs structural validation of dictionaries, cross-reference tables and encoding maps. This is CWE-400 (uncontrolled resource consumption), with the advisory also tagging CWE-405 (asymmetric resource consumption/amplification). The root cause is exception-handling design rather than a memory-safety bug: parsing routines caught broad except Exception blocks and re-raised new errors that embedded the text of the previously raised exception, so a single crafted invalid dictionary triggers a chain of nested parsing failures whose message text is repeatedly copied into each newly raised error. A few bytes of malformed input therefore expand into megabyte-scale strings, and memory use grows with the depth of the failure chain. The upstream fix in PR #4265, shipped in 6.21.3, replaces broad exception catches with narrow ones (KeyError, ValueError, UnicodeDecodeError, UnicodeEncodeError) and explicitly re-raises MemoryError instead of catching and wrapping it, which stops the message amplification. The CPE cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:* covers all releases below 6.21.3; the trigger conditions beyond 'a crafted invalid dictionary must be loaded' are not further described in the available sources.

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

Attacker-supplied PDF reaches the parser remotely with no privileges (AV:N/PR:N); a user/app must load the file (UI:R); availability-only impact (A:H), no C/I.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.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
Passive
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
Oct 29, 2026 - 21:03 EUVD
CVE Published
Oct 29, 2026 - 20:38 cve.org
HIGH 7.1

DescriptionCVE.org

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.3, pypdf can consume excessive memory when strict mode loads a crafted invalid PDF dictionary. Nested parsing failures add repeated exception text to newly raised errors, allowing a small malformed dictionary to amplify into very large error messages. This issue is fixed in version 6.21.3.

Blast Radius

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

Ecosystem-wide dependent count for version 6.21.3.

Technical POC Analysis

Evidence caveat: the only supplied artifact is advisory GHSA-4vqv-7265-gm2w.

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

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A high-severity memory exhaustion vulnerability (CVE-2026-119207) in the open-source pypdf library could allow an attacker to crash applications that process PDFs in strict parsing mode, causing service disruptions. This affects only systems that have explicitly enabled the non-default strict mode, but for those, successful exploitation can take the application offline. Leadership should prioritize patching to maintain availability of PDF-dependent business processes.

Business Impact: High
Compensating Controls

Apply vendor patch. If patching is delayed, disable strict=True in pypdf configurations or apply the workaround from PR #4265.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
popular pure-Python PDF library, common in document-processing pipelines
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL 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 Yes
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
No
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
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-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

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

Vendor StatusVendor

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