Skip to main content

pypdf EUVDEUVD-2026-25112

| CVE-2026-41312 MEDIUM
Memory Allocation with Excessive Size Value (CWE-789)
2026-04-22 GitHub_M
4.8
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Craft malicious PDF with oversized predictor parameters
  2. Delivery
    Distribute PDF to target user
  3. Exploit
    User opens PDF in vulnerable pypdf application
  4. Install
    pypdf decompresses stream with unvalidated predictor parameters
  5. C2
    Excessive memory allocation triggered
  6. Execute
    System RAM exhausted
  7. Impact
    Application crash or system unresponsiveness

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
Exploitation Conditions

User interaction is required - the malicious PDF must be opened or processed by a user or application using the vulnerable pypdf library. The PDF must contain a /FlateDecode stream with a /Predictor value not equal to 1 and deliberately large or malicious predictor parameters (such as /Columns, /Colors, or /BitsPerComponent set to values that cause memory allocation to exceed available resources). Exploitation is limited to local attack vector; the vulnerability cannot be triggered remotely. Default configurations of pypdf are vulnerable - no special configuration is required to enable the vulnerability, but processing of untrusted PDFs is the trigger. Applications that do not process external or untrusted PDFs are not at risk.

Impact

This vulnerability presents moderate real-world risk with important caveats. CVSS 4.8 with local attack vector (AV:L), low complexity (AC:L), no privileges required (PR:N), and user interaction (UI:P) correctly reflects that an attacker must trick a user into opening a malicious PDF. The impact is availability only (VA:L - low availability impact), not confidentiality or integrity. EPSS data not provided, preventing exploitation probability assessment. CWE-789 (memory allocation with excessive size) is a well-known denial-of-service vector. The presence of a patched version and GitHub advisory indicates this was responsibly disclosed. However, the local attack vector combined with required user interaction significantly limits exploitability compared to network-based attacks. This is a denial-of-service vulnerability affecting availability, not a code execution or data breach risk. Organizations using pypdf in automated batch-processing scenarios (where a user opening a PDF is not required) should prioritize patching; interactive PDF readers using pypdf should also patch, but risk is lower than for library consumers processing untrusted PDFs programmatically without user involvement.

Exploit ScenarioDerived

An attacker crafts a PDF file containing a stream compressed with /FlateDecode and predictor parameters configured to cause excessive memory allocation. The attacker distributes this PDF via email or file-sharing, and a user opens it in an application using the vulnerable pypdf library. As the application processes the stream, pypdf allocates massive amounts of memory during decompression and predictor application, exhausting available RAM and causing the application or system to become unresponsive or crash.

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

Memory exhaustion in pypdf prior to 6.10.2 allows local attackers to craft malicious PDF files that exhaust system RAM when processed. The vulnerability requires user interaction to open a specially crafted PDF containing a /FlateDecode stream with a /Predictor value other than 1 and large predictor parameters. Vendor-released patch available in version 6.10.2.

RemediationAI

Upgrade pypdf to version 6.10.2 or later immediately. For users unable to upgrade immediately, apply the patch changes manually from commit ac734dab4eef92bcce50d503949b4d9887d89f11 (https://github.com/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11), which implements proper validation of predictor parameters. The patch validates that predictor parameters do not cause excessive memory allocation during stream decompression. As an interim compensating control, restrict access to PDF processing to trusted sources only and implement file size limits on uploaded or processed PDFs to reduce the likelihood of triggering the memory exhaustion. Monitor system memory usage during PDF processing and set resource limits (ulimit on Linux) to prevent complete system resource exhaustion if a malicious PDF is processed. Note that these controls reduce risk but do not eliminate the vulnerability - patching remains the primary remediation.

Affected VersionsENISA

pypdf < 6.10.2

Affected Packages

pypi pypdf fix: 6.10.2

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 library that processes PDF streams, including those using FlateDecode compression with predictor functions. The vulnerability lies in improper handling of /Predictor parameters in compressed streams. When a stream uses /FlateDecode compression with a /Predictor unequal to 1 and large predictor parameters, the decompression and predictor application logic fails to validate or limit memory allocation, leading to CWE-789 (Memory Allocation with Excessive Size Value). The predictor function in PDF streams is used to filter data during compression; improper parameter validation allows an attacker to specify predictor parameters that cause the library to allocate excessive memory during decompression.

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 4.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
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 27, 2026 - 19:31 nvd
Patch available
Patch available
Apr 22, 2026 - 23:02 EUVD
CVSS changed
Apr 22, 2026 - 22:22 NVD
4.8 (MEDIUM)
CVE Published
Apr 22, 2026 - 21:02 nvd
MEDIUM 4.8

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.2 can craft a PDF which leads to the RAM being exhausted. This requires accessing a stream compressed using /FlateDecode with a /Predictor unequal 1 and large predictor parameters. This has been fixed in pypdf 6.10.2. 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
  • 23 pypi packages depend on pypdf (17 direct, 6 indirect)

Ecosystem-wide dependent count for version 6.10.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% 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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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