{"id":"CVE-2026-41312","published":"2026-04-22T21:02:53Z","modified":"2026-04-23T13:45:30Z","title":"pypdf: Manipulated FlateDecode predictor parameters 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 a stream compressed using `/FlateDecode` with a `/Predictor` unequal 1 and large predictor parameters. 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-7gw9-cf7v-778f","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":"no","technicalImpact":"partial","timestamp":"2026-04-23T13:45:18.970091Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.10.2"],"patched":["6.10.2"],"from":["GHSA-7gw9-cf7v-778f","PYSEC-2026-3011"],"provenance":"source"}],"summary":{"text":"The flaw is in pypdf, the pure-Python PDF library, where manipulated FlateDecode predictor parameters can cause excessive memory allocation. An attacker can exploit it by supplying a crafted PDF containing a stream compressed with /FlateDecode, a /Predictor value other than 1, and large predictor parameters, which exhausts the RAM of the process parsing the file, and the victim must open or process that file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:46Z"},"euvd":{"id":"EUVD-2026-25112","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-28351","parents":[{"from":"CVE-2026-28351","to":"CVE-2026-41312","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-41312","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-33699","published":"2026-03-26","fixed":"6.9.2","kev":false},{"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-41168","to":"CVE-2026-41312","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,"link":{"from":"CVE-2026-41312","to":"CVE-2026-48155","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.10.2","toFixed":"6.12.0","daysApart":36}]}},{"cve":"CVE-2026-48156","published":"2026-05-28","fixed":"6.12.0","kev":false,"link":{"from":"CVE-2026-41312","to":"CVE-2026-48156","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.10.2","toFixed":"6.12.0","daysApart":36}]}}],"package":"PyPI:pypdf"}}