{"id":"CVE-2026-59938","published":"2026-07-08T17:24:29Z","modified":"2026-07-09T13:58:17Z","title":"pypdf: Possible large memory usage for wrong image dimensions","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"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.","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.00515,"percentile":0.37146,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-5qjq-93h5-hrgp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3888","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/c64583be16b8e8763d8777075f8ecbf382014b7a","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.14.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":7.43},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.14.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-09T13:58:08.413307Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.14.0"],"patched":["6.14.0"],"from":["GHSA-5qjq-93h5-hrgp","PYSEC-2026-3611"],"provenance":"source"}],"summary":{"text":"The flaw is in the image parsing code of pypdf, a pure-Python open-source PDF library, where declared image dimensions are not checked against the actual data size. An attacker can exploit this by crafting a PDF whose image size values are far larger than the data it contains, which causes excessive memory consumption when pypdf parses it. The attack requires only that the malicious PDF be processed by a vulnerable pypdf version (prior to 6.14.0), with no authentication, configuration change, or user interaction beyond that.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:31Z"},"euvd":{"id":"EUVD-2026-42343","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-54531","published":"2026-06-22","fixed":"6.13.0","kev":false},{"cve":"CVE-2026-54651","published":"2026-06-22","fixed":"6.13.1","kev":false,"link":{"from":"CVE-2026-54651","to":"CVE-2026-59938","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.13.1","toFixed":"6.14.0","daysApart":16}]}},{"cve":"CVE-2026-59937","published":"2026-07-08","fixed":"6.14.0","kev":false},{"cve":"CVE-2026-59938","published":"2026-07-08","fixed":"6.14.0","kev":false},{"cve":"CVE-2026-59936","published":"2026-07-08","fixed":"6.14.1","kev":false,"link":{"from":"CVE-2026-59938","to":"CVE-2026-59936","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.14.0","toFixed":"6.14.1","daysApart":0}]}},{"cve":"CVE-2026-59935","published":"2026-07-08","fixed":"6.14.2","kev":false},{"cve":"CVE-2026-71852","published":"2026-08-07","fixed":"6.15.0","kev":false}],"package":"PyPI:pypdf"}}