{"id":"CVE-2025-55197","published":"2025-08-13T23:03:02Z","modified":"2025-08-14T14:50:48Z","title":"pypdf's Manipulated FlateDecode 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.0.0, an attacker can craft a PDF which leads to the RAM being exhausted. This requires just reading the file if a series of FlateDecode filters is used on a malicious cross-reference stream. Other content streams are affected on explicit access. This issue has been fixed in 6.0.0. If an update is not possible, a workaround involves including the fixed code from pypdf.filters.decompress into the existing filters file.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00987,"percentile":0.6123,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-7hfw-26vp-jp8m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/issues/3429","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/pull/3430","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/blob/0dd57738bbdcdb63f0fb43d8a6b3d222b6946595/pypdf/filters.py#L72-L143","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":12.25},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-14T13:41:25.204585Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.0.0"],"patched":["6.0.0"],"from":["GHSA-7hfw-26vp-jp8m","PYSEC-2026-1830"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-24648","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-36464","published":"2023-06-27","fixed":"3.9.0","kev":false},{"cve":"CVE-2023-46250","published":"2023-10-31","fixed":"3.17.0","kev":false},{"cve":"CVE-2025-55197","published":"2025-08-13","fixed":"6.0.0","kev":false},{"cve":"CVE-2025-62707","published":"2025-10-22","fixed":"6.1.3","kev":false,"link":{"from":"CVE-2025-55197","to":"CVE-2025-62707","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.0.0","toFixed":"6.1.3","daysApart":70}]}},{"cve":"CVE-2025-62708","published":"2025-10-22","fixed":"6.1.3","kev":false,"link":{"from":"CVE-2025-55197","to":"CVE-2025-62708","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.0.0","toFixed":"6.1.3","daysApart":70}]}},{"cve":"CVE-2025-66019","published":"2025-11-25","fixed":"6.4.0","kev":false}],"package":"PyPI:pypdf"}}