Skip to main content

pypdf CVE-2026-134367

| EUVDEUVD-2026-132545 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-21 VulnCheck GHSA-628g-x9hq-c9c9
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted PDF to pypdf-based service
  2. Delivery
    PDF contains XFA forms with many small fields
  3. Exploit
    Application loads XFA forms via pypdf
  4. Execution
    Memory consumption grows excessively
  5. Impact
    Process exhausts memory and 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

Exploitation requires that an application use pypdf (version 2.4.2 up to but not including 7.0.0) to load/parse an attacker-supplied PDF, and specifically that the code path loading XFA forms is reached for that document. The concrete trigger is a PDF whose XFA forms contain many (possibly small) fields, causing disproportionate memory allocation during form loading. Limiting factors: the target must process untrusted PDFs and actually invoke XFA form loading, so applications that never handle XFA forms or never parse untrusted input are not exposed; impact is limited to memory-exhaustion denial of service (no data exposure or code execution). The CVSS vector indicates no authentication (PR:N) and no user interaction (UI:N) are required beyond getting the malicious PDF processed.

Impact

This is a genuine but bounded availability risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a network-reachable, low-complexity, unauthenticated trigger with no user interaction, and the impact is confined entirely to availability on the vulnerable system (VC:N/VI:N/VA:H) - consistent with a CWE-770/CWE-400 uncontrolled resource consumption (memory exhaustion) denial of service, with no confidentiality or integrity exposure and no code execution. The vuln.today decision label is 'this_week' rather than act_now/emergency, which aligns with a serious-but-not-crisis DoS. No EPSS score, CISA KEV entry, or SSVC exploitation/automatable values were supplied in the input, and no working exploit code is referenced - only a GHSA advisory and a VulnCheck advisory - so there is currently no evidence of active exploitation, only of a documented, patched weakness. The signals are internally consistent (high CVSS driven solely by the VA:H availability impact, moderate priority label, patch available), with the main caveat that real-world reachability depends on whether an exposed application actually parses untrusted PDFs and loads their XFA forms - the network vector assumes such a processing path exists.

Exploit ScenarioDerived

An attacker submits a crafted PDF containing XFA forms with a very large number of small fields to an application that uses pypdf to parse untrusted documents (e.g., an upload/ingestion or conversion service). When pypdf loads the XFA forms, memory consumption balloons, exhausting available memory and causing the worker or process to crash or hang, denying service to legitimate users. No public working exploit code is identified at time of analysis; the attack requires only the ability to get a malicious PDF processed.

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 – Nov 21, 2026

Memory exhaustion denial of service in the Python library pypdf (versions 2.4.2 up to but not including 7.0.0) allows a crafted PDF containing XFA forms with very many small fields to consume excessive memory when the forms are loaded, degrading or crashing the parsing process. The CVSS 4.0 vector (8.7) reflects a high availability-only impact with no confidentiality or integrity effect, and no authentication or user interaction is indicated by the vector beyond getting the document processed. Applications are exposed only if they actually parse untrusted PDFs and reach the XFA form-loading code path; no public exploit code was identified at time of analysis and there is no CISA KEV entry, so this is a bounded availability risk rather than an active campaign.

RemediationAI

Upgrade pypdf to 7.0.0 or later (fixed version per the upstream advisory and release tag https://github.com/py-pdf/pypdf/releases/tag/7.0.0); this is the vendor's stated complete fix. If upgrading immediately is not possible, the vendor suggests applying the changes from pull request #4363 (https://github.com/py-pdf/pypdf/pull/4363) as an interim backport, which carries the usual maintenance cost of carrying a patched fork until a release upgrade can be scheduled. Applications that do not require XFA support can reduce exposure by ensuring untrusted documents never reach the XFA form-loading path, since the memory growth occurs specifically during XFA form loading; the trade-off is loss of form-field extraction for those documents. Because exploitation requires the library to parse attacker-supplied PDFs, limiting PDF ingestion to trusted sources or isolating PDF parsing in a memory-capped worker process bounds the denial-of-service impact, at the cost of throughput and architectural complexity.

Affected VersionsENISA

pypdf 2.4.2 <7.0.0

Affected Packages

euvd pypdf fix: 7.0.0

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 pipelines, upload validators, and text-extraction services. XFA (XML Forms Architecture) is an XML-based form format embedded in PDFs; when pypdf loads XFA form data it constructs in-memory representations of the form and its fields. The flaw is an uncontrolled resource consumption issue (CWE-770 per the CVE record; the upstream GHSA classifies it as CWE-400) in which the number of fields in an attacker-supplied XFA form is not adequately bounded, so a document with many, individually small fields causes disproportionate memory allocation during form loading rather than allocation proportional to file size. Because the impact is confined to memory consumption, the assessed CVSS 3.1 vector shows A:H with C:N and I:N, and the trigger requires the host application to invoke the XFA form-loading path on untrusted input - applications that never process XFA forms or never parse third-party PDFs are not on the vulnerable path. The precise internal allocation mechanism is not 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 (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 parsed over a network path with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is pure memory-exhaustion DoS, 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
Red Hat 5.5 MEDIUM

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
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:34 cve.org
HIGH 8.7

DescriptionCVE.org

pypdf 2.4.2 before 7.0.0 contains a resource exhaustion vulnerability in its handling of XFA forms that allows attackers to cause excessive memory consumption. Attackers can supply a crafted PDF containing XFA forms with many small fields so that loading the forms consumes large amounts of memory, causing a denial of service.

Technical POC Analysis

Evidence caveat: the only artefact supplied is advisory GHSA-cmpx-464x-82c3 plus the CVE summary.

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

A high-severity memory exhaustion vulnerability in the pypdf library (versions 2.4.2 to 6.x) can be triggered by a crafted PDF containing excessive XFA form fields, leading to denial-of-service conditions. Any internal application that parses untrusted PDFs using an affected version is at risk of degraded performance or crashes, potentially disrupting document processing workflows. Leadership should prioritize remediation because this availability-only issue could cause localized service interruptions without confidentiality or integrity impact.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include isolating PDF processing in resource-constrained sandboxes, enforcing memory and time limits, and avoiding parsing of untrusted PDFs until an upgrade to pypdf 7.0.0 is possible.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
High
pypdf is a widely used Python PDF parsing library across many applications and pipelines
Data Quality
6 sources
Confidence: High

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

Vendor StatusVendor

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