{"id":"CVE-2025-66019","aliases":["CVE-2025-66019","GHSA-m449-cwjh-6pw7","PYSEC-2026-1832"],"related":[],"kind":"vulnerability","state":"published","title":"pypdf manipulated LZWDecode streams can exhaust RAM","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn 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.\n\nThis is a follow up to [GHSA-jfx9-29x2-rv3j](https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j) to align the default limit with the one for *zlib*.\n\n### Patches\nThis has been fixed in [pypdf==6.4.0](https://github.com/py-pdf/pypdf/releases/tag/6.4.0).\n\n### Workarounds\nIf users cannot upgrade yet, use the line below to overwrite the default in their code:\n\n```python\npypdf.filters.LZW_MAX_OUTPUT_LENGTH = 75_000_000\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"pypdf es una biblioteca PDF de Python puro, gratuita y de código abierto. Versiones anteriores a la versión 6.4.0, un atacante que utiliza esta vulnerabilidad puede crear un PDF que conduce a un uso de memoria de hasta 1 GB por flujo. Esto requiere analizar el flujo de contenido de una página utilizando el filtro LZWDecode. Este problema ha sido parcheado en la versión 6.4.0.","source":"nvd"}],"published":"2025-11-24T22:42:07.000Z","modified":"2026-10-19T13:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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"}],"cwes":["CWE-400","CWE-409"],"affected":[{"ranges":[{"version":"< 6.4.0","status":"affected"}],"vendor":"py-pdf","product":"pypdf","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.4.0"}],"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.4.0"}],"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","source":"pysec"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.4.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66019","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/py-pdf/pypdf","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pypdf","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-m449-cwjh-6pw7","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-11-26T16:12:41.650Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66019","url":"https://www.cve.org/CVERecord?id=CVE-2025-66019","licence":"CVE Terms of Use","modified":"2026-01-20T18:33:02.928Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m449-cwjh-6pw7","url":"https://github.com/advisories/GHSA-m449-cwjh-6pw7","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:31.107Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66019","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66019","licence":"Public domain","modified":"2026-10-19T13:10:00.110Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1832","url":"https://osv.dev/vulnerability/PYSEC-2026-1832","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:59.109Z"}],"updatedAt":"2026-11-25T22:59:08.020Z","epss":{"score":0.00387,"percentile":0.34954,"date":"2026-12-01T12:00:22.000Z"}}