{"id":"CVE-2026-40260","published":"2026-04-16T23:18:26Z","modified":"2026-04-17T18:42:05Z","title":"pypdf: Manipulated XMP metadata entity declarations can exhaust RAM","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00439,"percentile":0.39062,"provenance":"source"},"cwes":[{"id":"CWE-776","name":"Improper Restriction of Recursive Entity References in DTDs"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-3crg-w4f6-42mx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3724","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/b15a374e5ca648d4878e57c3b2c0551e7f8cc7f8","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.10.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":7.81},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.10.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-17T18:41:50.866889Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.10.0"],"patched":["6.10.0"],"from":["GHSA-3crg-w4f6-42mx","PYSEC-2026-3006"],"provenance":"source"}],"summary":{"text":"pypdf, a pure-Python PDF library, contains a flaw in how it handles XMP metadata entity declarations, where manipulated declarations can exhaust available RAM. An attacker with network access and no authentication or user interaction can craft a malicious PDF that causes large memory consumption when its XMP metadata is parsed, with no special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:42Z"},"euvd":{"id":"EUVD-2026-23327","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-31826","published":"2026-03-10","fixed":"6.8.0","kev":false},{"cve":"CVE-2026-33123","published":"2026-03-20","fixed":"6.9.1","kev":false},{"cve":"CVE-2026-33699","published":"2026-03-26","fixed":"6.9.2","kev":false,"link":{"from":"CVE-2026-33699","to":"CVE-2026-40260","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.9.2","toFixed":"6.10.0","daysApart":21}]}},{"cve":"CVE-2026-40260","published":"2026-04-16","fixed":"6.10.0","kev":false},{"cve":"CVE-2026-41168","published":"2026-04-22","fixed":"6.10.1","kev":false,"link":{"from":"CVE-2026-40260","to":"CVE-2026-41168","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.10.0","toFixed":"6.10.1","daysApart":6}]}},{"cve":"CVE-2026-41312","published":"2026-04-22","fixed":"6.10.2","kev":false},{"cve":"CVE-2026-41313","published":"2026-04-22","fixed":"6.10.2","kev":false}],"package":"PyPI:pypdf"}}