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-59938: CWE-789: Memory Allocation with Excessive Size Value in py-pdf pypdf

0
Medium
VulnerabilityCVE-2026-59938cvecve-2026-59938cwe-789
Published: 07/08/2026 (07/08/2026, 17:24:29 UTC)
Source: CVE Database V5
Vendor/Project: py-pdf
Product: pypdf

Description

A vulnerability in the pypdf library prior to version 6.14.0 allows an attacker to craft a PDF with image size values that are excessively large compared to the actual image data. This causes excessive memory allocation during image parsing. The issue is fixed in pypdf version 6.14.0.

CVSS v4.0

Score 6.9medium

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

Affected software

pypdf
pkg:pypi/pypdf
Affected versions
<6.14.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/08/2026, 17:43:14 UTC

Technical Analysis

CVE-2026-59938 is a memory allocation vulnerability (CWE-789) in the pypdf Python library. Before version 6.14.0, an attacker can create a malicious PDF file that declares image size values much larger than the actual image data, leading to excessive memory usage during parsing. This can degrade performance or cause denial of service due to resource exhaustion. The vulnerability has a CVSS 4.0 base score of 6.9 (medium severity). No known exploits are reported in the wild. The issue is resolved in pypdf 6.14.0.

Potential Impact

The vulnerability can cause excessive memory consumption when parsing crafted PDF images, potentially leading to denial of service or application instability. There is no indication of code execution or data corruption. The impact is limited to resource exhaustion.

Mitigation Recommendations

Upgrade pypdf to version 6.14.0 or later, where this vulnerability is fixed. Since no official patch links or advisories are provided, users should verify the version upgrade to ensure remediation. No other mitigations are specified.

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-07-07T18:20:06.127Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4e88dcc9d9e3dbe37f651e

Added to database: 07/08/2026, 17:29:00 UTC

Last enriched: 07/08/2026, 17:43:14 UTC

Last updated: 07/08/2026, 18:02:57 UTC

Views: 4

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