CVE-2026-59938 Details
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.0, an attacker can craft a PDF with declared image size values that are much too large compared to the actual data, causing large memory usage in pypdf image parsing. This issue is fixed in version 6.14.0.
A vulnerability in pypdf, a pure-Python PDF library, allows for excessive memory usage when parsing images from PDFs. This issue arises because an attacker can create a PDF with image size declarations that are significantly larger than the actual image data. The vulnerability is present in versions prior to 6.14.0 and has been addressed in version 6.14.0.
Users can upgrade to pypdf version 6.14.0 or later to address this vulnerability. If an immediate upgrade is not possible, the changes from PR #3888 can be applied as a temporary workaround.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/py-pdf/pypdf/commit/c64583be16b8e8763d8777075f8ecbf382014b7a | [email protected] | Patch |
| https://github.com/py-pdf/pypdf/pull/3888 | [email protected] | Issue TrackingPatch |
| https://github.com/py-pdf/pypdf/releases/tag/6.14.0 | [email protected] | ProductRelease Notes |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-5qjq-93h5-hrgp | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-789 | Memory Allocation with Excessive Size Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pypdf project pypdf | < 6.14.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | Initial Analysis | [email protected] |
| Jul 9, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |