CVE-2026-59938: CWE-789: Memory Allocation with Excessive Size Value in py-pdf pypdf
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.
AI Analysis
Technical Summary
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.
CVE-2026-59938: CWE-789: Memory Allocation with Excessive Size Value in py-pdf 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.