Skip to main content

pypdf CVE-2026-41168

| EUVDEUVD-2026-25100 MEDIUM
Excessive Iteration (CWE-834)
2026-04-22 GitHub_M
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
    Attacker crafts malicious PDF
  2. Delivery
    Uploads file to vulnerable application
  3. Exploit
    Application invokes pypdf parser
  4. Execution
    Parser reads oversized `/Size` or `/N` value
  5. Persist
    Parser allocates excessive memory/iterates unneeded objects
  6. Impact
    Application hangs or crashes

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Excessive iteration
Exploitation Conditions

The vulnerability requires that a user or automated system parses a malicious PDF file using pypdf prior to version 6.10.1. Specifically, the PDF must contain either a cross-reference stream with an oversized /Size parameter or an object stream with an oversized /N parameter; standard compliant PDFs do not exhibit this condition. No special pypdf configuration or feature enablement is required-the vulnerability exists in the default PDF parsing code path. Exploitation is limited by the necessity to deliver the malicious PDF to a system running vulnerable pypdf; remote code execution and privilege escalation are not possible, and the impact is confined to resource exhaustion on the parsing host.

Impact

This is a denial-of-service vulnerability with real but limited impact. CVSS 6.9 reflects network accessibility and low complexity, but the actual damage is constrained: VA:L (low availability impact) indicates the attack causes service degradation rather than complete failure. EPSS scoring data is unavailable, preventing assessment of real-world exploitation likelihood. KEV status is not confirmed, suggesting this is not yet in active exploitation campaigns. The attack requires a user to parse an attacker-supplied PDF-either via direct file upload or through an automated PDF processing pipeline-making it relevant primarily to applications that accept external PDFs (document management systems, email scanners, form processors). Compared to high-CVSS remote code execution vulnerabilities, this is a lower-priority fix, but for services that process untrusted PDFs at scale, it represents a resource exhaustion vector that could amplify in coordinated attacks. The presence of a released patch and public GitHub pull request suggests the vulnerability was responsibly disclosed and validated before publication.

Exploit ScenarioDerived

An attacker crafts a malicious PDF file with a cross-reference stream containing a /Size value of 10,000,000 despite the PDF containing only a handful of objects. When a vulnerable version of pypdf attempts to parse this file-either via a web form that accepts PDF uploads, an email attachment scanner, or an automated document processing system-pypdf iterates through the falsely-declared object range, consuming excessive CPU and memory until the application becomes unresponsive or crashes. The attacker can distribute this PDF widely or target a specific service, causing a denial-of-service condition with minimal effort.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 23, 2026

Denial of service in pypdf prior to version 6.10.1 allows remote attackers to craft malicious PDF files with oversized cross-reference stream /Size values or object stream /N values, causing excessive processing time and long runtimes. No authentication is required; the vulnerability is triggered by parsing a specially crafted PDF file. Patch version 6.10.1 is available from the vendor.

RemediationAI

Upgrade pypdf to version 6.10.1 or later immediately, as a vendor-released patch is available. For users who cannot immediately upgrade, the patch may be applied manually by applying the changes from GitHub commit 62338e9d36419cf193ccec7331784f45df1d70b3 (https://github.com/py-pdf/pypdf/commit/62338e9d36419cf193ccec7331784f45df1d70b3) or PR #3733 (https://github.com/py-pdf/pypdf/pull/3733) to the local pypdf installation. As a compensating control while a patch is unavailable, implement strict file size limits and processing timeouts (e.g., 30-second maximum parse time) on PDF processing pipelines to interrupt runaway parsing operations, though this may reject legitimate large PDFs. Additionally, restrict PDF upload functionality to trusted sources and disable automatic PDF processing for external inputs if feasible.

Affected VersionsENISA

pypdf < 6.10.1

Affected Packages

pypi pypdf fix: 6.10.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 pure-Python PDF parsing library that processes PDF structure including cross-reference streams and object streams. Cross-reference streams contain metadata about indirect objects referenced via /Size parameters, while object streams group multiple objects with /N (count) parameters. The vulnerability stems from CWE-834 (Excessive Iteration), where incorrect large values in these fields cause pypdf to allocate excessive memory or iterate through non-existent object ranges, consuming CPU and memory resources disproportionately to the actual PDF content. The CVSS 4.0 vector shows network accessibility (AV:N), low complexity (AC:L), no authentication (PR:N), and availability impact (VA:L), indicating a resource exhaustion denial-of-service condition rather than data disclosure or code execution.

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
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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

4
Patch released
Apr 24, 2026 - 13:07 nvd
Patch available
Patch available
Apr 22, 2026 - 22:02 EUVD
CVSS changed
Apr 22, 2026 - 21:22 NVD
6.9 (MEDIUM)
CVE Published
Apr 22, 2026 - 20:49 nvd
MEDIUM 6.9

DescriptionCVE.org

pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.1 can craft a PDF which leads to long runtimes. This requires cross-reference streams with wrong large /Size values or object streams with wrong large /N values. This has been fixed in pypdf 6.10.1. As a workaround, one may apply the changes from the patch manually.

Blast Radius

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

Ecosystem-wide dependent count for version 6.10.1.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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.0%
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

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