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…

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

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

Description

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 an image using `/FlateDecode` with large size values. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/22/2026, 21:46:02 UTC

Technical Analysis

The vulnerability in pypdf versions before 6.10.2 allows an attacker to craft a malicious PDF containing an image with a /FlateDecode filter and an excessively large size value. When processed, this causes the library to allocate excessive amounts of memory, potentially exhausting system RAM. This is classified under CWE-789 (Memory Allocation with Excessive Size Value). The issue is resolved in pypdf 6.10.2, and users can mitigate by upgrading or manually applying the patch changes.

Potential Impact

Successful exploitation can cause denial of service by exhausting system memory when parsing crafted PDFs. There is no indication of code execution or data corruption. The impact is limited to resource exhaustion leading to potential application or system instability.

Mitigation Recommendations

Upgrade pypdf to version 6.10.2 or later, where the vulnerability is fixed. Alternatively, manually apply the patch changes provided by the vendor. Since this is a library vulnerability, ensure that any software using affected pypdf versions is updated accordingly. No other specific mitigations are indicated.

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: 69e93e1919fe3cd2cdf2afe3

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

Last enriched: 4/22/2026, 9:46:02 PM

Last updated: 4/22/2026, 11:43:14 PM

Views: 7

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