{"id":"CVE-2025-66019","published":"2025-11-25T23:38:12Z","modified":"2026-01-20T18:33:02Z","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.4.0, an attacker who uses this vulnerability can craft a PDF which leads to a memory usage of up to 1 GB per stream. This requires parsing the content stream of a page using the LZWDecode filter. This issue has been patched in version 6.4.0.","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.00387,"percentile":0.33571,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.4.0","tags":["x_refsource_MISC"]},{"url":"https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos/","tags":[]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.71},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.4.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-11-26T16:12:41.650530Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.4.0"],"patched":["6.4.0"],"from":["GHSA-m449-cwjh-6pw7","PYSEC-2026-1832"],"provenance":"source"}],"summary":{"text":"pypdf, a pure-Python PDF library, has a flaw in its handling of LZWDecode-compressed page content streams. An attacker can craft a PDF that causes up to about 1 GB of memory use per stream when such a page is parsed over the network without authentication or user interaction, leading to resource exhaustion; versions before 6.4.0 are affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:51Z"},"euvd":{"id":"EUVD-2025-199017","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2025-62708","parents":[{"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-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-62707","to":"CVE-2025-66019","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.1.3","toFixed":"6.4.0","daysApart":34}]}},{"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,"link":{"from":"CVE-2025-66019","to":"CVE-2026-22690","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.4.0","toFixed":"6.6.0","daysApart":46}]}},{"cve":"CVE-2026-22691","published":"2026-01-10","fixed":"6.6.0","kev":false,"link":{"from":"CVE-2025-66019","to":"CVE-2026-22691","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.4.0","toFixed":"6.6.0","daysApart":46}]}},{"cve":"CVE-2026-24688","published":"2026-01-27","fixed":"6.6.2","kev":false}],"package":"PyPI:pypdf"}}