pypdf's LZWDecode streams be manipulated to exhaust RAM
Impact
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 is a follow up to GHSA-jfx9-29x2-rv3j to align the default limit with the one for zlib.
Patches
This has been fixed in pypdf==6.4.0.
Workarounds
If users cannot upgrade yet, use the line below to overwrite the default in their code:
pypdf.filters.LZW_MAX_OUTPUT_LENGTH = 75_000_000
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | pypdf | < 6.4.0 | 6.4.0 |
Referencias
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7
- https://nvd.nist.gov/vuln/detail/CVE-2025-66019
- https://github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2
- https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos
- https://github.com/py-pdf/pypdf
- https://github.com/py-pdf/pypdf/releases/tag/6.4.0
- https://pypi.org/project/pypdf
- https://github.com/advisories/GHSA-m449-cwjh-6pw7
- Vector CVSS
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- Debilidad (CWE)
CWE-400, CWE-409- Plataforma
- Python (PyPI)
- Paquete
pypdf- Publicada
- 24.11.2025
- Actualizado
- 11.10.2026 15:17
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2026-1832 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-m449-cwjh-6pw7 - CC BY 4.0
Historial de vulnerabilidades: pypdf
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 51
- Primera → última
- 06.2023 10.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 10
- Media 38
- Baja 3
Divulgaciones por año
- 2023: 2
- 2024: 0
- 2025: 4
- 2026: 45
-
pypdf's LZWDecode streams be manipulated to exhaust RAM esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.