Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 93%

CVE-2026-41312: CWE-789: Memory Allocation with Excessive Size Value in py-pdf pypdf

0
Medium
VulnerabilityCVE-2026-41312cvecve-2026-41312cwe-789
Published: Wed Apr 22 2026 (04/22/2026, 21:02:53 UTC)
Source: CVE Database V5
Vendor/Project: py-pdf
Product: pypdf

Description

A vulnerability in the pypdf library prior to version 6. 10. 2 allows an attacker to craft a specially designed PDF that causes excessive memory allocation, leading to RAM exhaustion. This occurs when processing a stream compressed with /FlateDecode using a /Predictor value other than 1 and large predictor parameters. The issue has been fixed in pypdf version 6. 10. 2. No known exploits are reported in the wild. The vulnerability has a medium severity rating with a CVSS score of 4. 8.

CVSS v4.0

Score 4.8medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/30/2026, 08:14:02 UTC

Technical Analysis

The pypdf library, a pure-Python PDF processing tool, contains a memory allocation vulnerability (CWE-789) in versions before 6.10.2. An attacker can craft a PDF file with a /FlateDecode compressed stream that uses a /Predictor value not equal to 1 and large predictor parameters, causing the library to allocate excessive memory and exhaust system RAM. This flaw was addressed and fixed in version 6.10.2 of pypdf. No official patch links are provided, but users are advised to upgrade to 6.10.2 or manually apply the patch changes. The vulnerability requires local access to the file and user interaction to trigger.

Potential Impact

Successful exploitation can lead to denial of service by exhausting system memory when processing malicious PDF files. There is no indication of privilege escalation, code execution, or data disclosure. The attack vector is local with low complexity and requires user interaction.

Mitigation Recommendations

Upgrade to pypdf version 6.10.2 where the vulnerability is fixed. If upgrading is not immediately possible, manually apply the patch changes as described in the fix. No other mitigations or vendor advisories are provided. Patch status is confirmed fixed in version 6.10.2.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-20T14:01:46.671Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e93e1919fe3cd2cdf2afd7

Added to database: 4/22/2026, 9:31:05 PM

Last enriched: 4/30/2026, 8:14:02 AM

Last updated: 6/6/2026, 11:57:49 PM

Views: 83

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses