{"id":"CVE-2026-41314","published":"2026-04-22T21:08:14Z","modified":"2026-04-23T14:21:47Z","title":"pypdf: Manipulated FlateDecode image dimensions can exhaust RAM","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.2 can craft a PDF which leads to the RAM being exhausted. This requires accessing an image using `/FlateDecode` with large size values. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00235,"percentile":0.14798,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-x284-j5p8-9c5p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3734","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.10.2","tags":["x_refsource_MISC"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":2.96},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.10.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-23T14:21:23.056055Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.10.2"],"patched":["6.10.2"],"from":["GHSA-x284-j5p8-9c5p","PYSEC-2026-3026"],"provenance":"source"}],"summary":{"text":"The pypdf PDF library (py-pdf's pypdf product) contains a flaw in how it handles image data compressed with FlateDecode, where manipulated image dimensions cause excessive memory allocation. An attacker with local access who can get a user to open a crafted PDF can exhaust the system's RAM, provided the PDF includes an image using FlateDecode with large size values and the user interacts with it, with no authentication required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:47Z"},"euvd":{"id":"EUVD-2026-25116","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-28351","parents":[{"from":"CVE-2026-28351","to":"CVE-2026-41314","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/filters.py"],"commits":["https://github.com/py-pdf/pypdf/commit/f309c6003746414dc7b5048c19e6d879ff2dc858","https://github.com/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11"],"basis":"shared function","functions":["decode"]}]},{"from":"CVE-2026-28804","to":"CVE-2026-41314","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/filters.py"],"commits":["https://github.com/py-pdf/pypdf/commit/648c627d2657447dfb1773412af05a0a5103b98f","https://github.com/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11"],"basis":"shared function","functions":["decode"]}]}],"packageHistory":[{"cve":"CVE-2026-41168","published":"2026-04-22","fixed":"6.10.1","kev":false,"link":{"from":"CVE-2026-41168","to":"CVE-2026-41314","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.10.1","toFixed":"6.10.2","daysApart":0}]}},{"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},{"cve":"CVE-2026-41314","published":"2026-04-22","fixed":"6.10.2","kev":false},{"cve":"CVE-2026-48155","published":"2026-05-28","fixed":"6.12.0","kev":false},{"cve":"CVE-2026-48156","published":"2026-05-28","fixed":"6.12.0","kev":false},{"cve":"CVE-2026-48735","published":"2026-05-28","fixed":"6.12.1","kev":false}],"package":"PyPI:pypdf"}}