{"id":"CVE-2026-28351","published":"2026-02-27T20:59:16Z","modified":"2026-03-03T20:28:45Z","title":"Manipulated RunLengthDecode streams can exhaust RAM","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to version 6.7.4, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the content stream using the RunLengthDecode filter. This has been fixed in pypdf 6.7.4. As a workaround, consider applying the changes from PR #3664.","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.00473,"percentile":0.4172,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-f2v5-7jq9-h8cg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3664","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/f309c6003746414dc7b5048c19e6d879ff2dc858","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.7.4","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":8.34},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.7.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-03T20:28:37.910844Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.7.4"],"patched":["6.7.4"],"from":["GHSA-f2v5-7jq9-h8cg","PYSEC-2026-3017"],"provenance":"source"}],"summary":{"text":"The pypdf PDF library (py-pdf's pypdf product) contains a flaw in its handling of content streams that use the RunLengthDecode filter, where crafted input causes uncontrolled resource consumption. An attacker who supplies a specially crafted PDF can drive memory usage up, exhausting available RAM, with no privileges or user interaction required over the network, though the parsing of such a content stream is necessary for the condition to be triggered.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:41Z"},"euvd":{"id":"EUVD-2026-9070","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2026-28351","children":[{"from":"CVE-2026-28351","to":"CVE-2026-28804","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.7.4","toFixed":"6.7.5","daysApart":7},{"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/648c627d2657447dfb1773412af05a0a5103b98f"],"basis":"shared function","functions":["decode"]}]},{"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-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"]}]}],"packageHistory":[{"cve":"CVE-2026-27026","published":"2026-02-20","fixed":"6.7.1","kev":false},{"cve":"CVE-2026-27628","published":"2026-02-25","fixed":"6.7.2","kev":false},{"cve":"CVE-2026-27888","published":"2026-02-26","fixed":"6.7.3","kev":false,"link":{"from":"CVE-2026-27888","to":"CVE-2026-28351","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.7.3","toFixed":"6.7.4","daysApart":1}]}},{"cve":"CVE-2026-28351","published":"2026-02-27","fixed":"6.7.4","kev":false},{"cve":"CVE-2026-28804","published":"2026-03-06","fixed":"6.7.5","kev":false},{"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}],"package":"PyPI:pypdf"}}