CVE-2025-66019
MEDIUM 6.6CVSS 4.0pypdf's LZWDecode streams be manipulated to exhaust RAM
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.
- Published
- 26 Nov 2025
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-400CWE-409
- Also known as
- GHSA-m449-cwjh-6pw7PYSEC-2026-1832
- Sources
- NVDJSONOSV GHSA-m449-cwjh-6pw7JSONOSV PYSEC-2026-1832JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.6 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | |
| OSV | PyPA | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | pypdf | < 6.4.0 | 6.4.0 |
References
- https://github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2 · WEB
- https://github.com/py-pdf/pypdf/releases/tag/6.4.0 · WEB
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7 · WEB
- https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos/ · WEB
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-66019 · ADVISORY
- https://github.com/py-pdf/pypdf · PACKAGE
- https://pypi.org/project/pypdf · PACKAGE
- https://github.com/advisories/GHSA-m449-cwjh-6pw7 · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 26 Nov 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Nov 2025)