{"id":"CVE-2025-62708","published":"2025-10-22T21:36:56Z","modified":"2025-10-23T15:10:58Z","title":"pypdf manipulated LZWDecode 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.1.3, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the content stream of a page using the LZWDecode filter. This has been fixed in pypdf version 6.1.3.","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.00444,"percentile":0.39403,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3502","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/e51d07807ffcdaf18077b9486dadb3dc05b368da","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.1.3","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":7.88},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.1.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-23T15:10:16.712325Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.1.3"],"patched":["6.1.3"],"from":["GHSA-jfx9-29x2-rv3j","PYSEC-2026-1831"],"provenance":"source"}],"summary":{"text":"The flaw is in pypdf, a pure-Python PDF library from py-pdf, where manipulated content streams using the LZWDecode filter can cause excessive memory consumption when a page's content stream is parsed. An attacker can exploit it over the network without authentication or user interaction by supplying a crafted PDF, and the condition needed is that the target application parses that page's content stream, which triggers high memory usage.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:58Z"},"euvd":{"id":"EUVD-2025-35624","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2025-62708","children":[{"from":"CVE-2025-62708","to":"CVE-2025-66019","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-m449-cwjh-6pw7","via":"reference","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j"},{"kind":"osv-related","provenance":"source","id":"PYSEC-2026-1832","via":"reference","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j"},{"kind":"same-code","provenance":"machine","files":["pypdf/_codecs/_codecs.py"],"commits":["https://github.com/py-pdf/pypdf/commit/e51d07807ffcdaf18077b9486dadb3dc05b368da","https://github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2"],"basis":"shared function","functions":["LzwCodec"]},{"kind":"similar","provenance":"machine","score":0.92,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"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,"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-62707","published":"2025-10-22","fixed":"6.1.3","kev":false},{"cve":"CVE-2025-62708","published":"2025-10-22","fixed":"6.1.3","kev":false},{"cve":"CVE-2025-66019","published":"2025-11-25","fixed":"6.4.0","kev":false},{"cve":"CVE-2026-22690","published":"2026-01-10","fixed":"6.6.0","kev":false},{"cve":"CVE-2026-22691","published":"2026-01-10","fixed":"6.6.0","kev":false}],"package":"PyPI:pypdf"}}