CVE-2026-40260 Details
Description
pypdf is a free and open-source pure-python PDF library. In versions prior to 6.10.0, manipulated XMP metadata entity declarations can exhaust RAM. An attacker who exploits this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata. This issue has been fixed in version 6.10.0.
A denial-of-service vulnerability has been identified in the pypdf library, affecting versions prior to 6.10.0. This vulnerability arises from the library's handling of Extensible Metadata Platform (XMP) metadata, where manipulated entity declarations can lead to excessive memory consumption. An attacker can exploit this issue by crafting a PDF that, when processed, causes significant RAM usage due to the parsing of the XMP metadata.
Users can upgrade to pypdf version 6.10.0 or later to address this vulnerability. If an immediate upgrade is not possible, the changes from PR #3724 can be applied as a 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 Apr 17, 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/b15a374e5ca648d4878e57c3b2c0551e7f8cc7f8 | [email protected] | Patch |
| https://github.com/py-pdf/pypdf/pull/3724 | [email protected] | Issue TrackingPatch |
| https://github.com/py-pdf/pypdf/releases/tag/6.10.0 | [email protected] | ProductRelease Notes |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-3crg-w4f6-42mx | [email protected] | MitigationPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-776 | Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pypdf project pypdf | < 6.10.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 22, 2026 | Initial Analysis | [email protected] |
| Apr 17, 2026 | New CVE Received | [email protected] |