# CVE-2025-66019: pypdf manipulated LZWDecode streams can exhaust RAM

- Severity: Medium 6.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2025-11-24T22:42:07.000Z
- Modified: 2026-10-19T13:10:00.110Z
- Also known as: GHSA-m449-cwjh-6pw7, PYSEC-2026-1832
- Weaknesses: CWE-400, CWE-409
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- py-pdf pypdf: < 6.4.0
- pypdf (PyPI): before 6.4.0

## Every score

- GitHub_M: CVSS:4.0 6.6 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7> (web)
- <https://github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2> (web)
- <https://github.com/py-pdf/pypdf/releases/tag/6.4.0> (web)
- <https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos/>
- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66019> (advisory)
- <https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos> (web)
- <https://github.com/py-pdf/pypdf> (package)
- <https://pypi.org/project/pypdf> (package)
- <https://github.com/advisories/GHSA-m449-cwjh-6pw7> (advisory)

## Sources

- CVE List: [CVE-2025-66019](https://www.cve.org/CVERecord?id=CVE-2025-66019), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-m449-cwjh-6pw7](https://github.com/advisories/GHSA-m449-cwjh-6pw7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-66019](https://nvd.nist.gov/vuln/detail/CVE-2025-66019), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1832](https://osv.dev/vulnerability/PYSEC-2026-1832), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-66019 · Whole record: https://cve.day/CVE-2025-66019.json · Rebuilt by cve.day 2026-11-25T22:59:08.020Z
