Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pypdf
  4. ›
  5. CVE-2025-66019

CVE-2025-66019: pypdf's LZWDecode streams be manipulated to exhaust RAM

November 24, 2025 (updated January 21, 2026)

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.

References

  • aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos
  • github.com/advisories/GHSA-m449-cwjh-6pw7
  • github.com/py-pdf/pypdf
  • github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2
  • github.com/py-pdf/pypdf/releases/tag/6.4.0
  • github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j
  • github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7
  • nvd.nist.gov/vuln/detail/CVE-2025-66019

Code Behaviors & Features

Detect and mitigate CVE-2025-66019 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.4.0

Fixed versions

  • 6.4.0

Solution

Upgrade to version 6.4.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)

Source file

pypi/pypdf/CVE-2025-66019.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:27 +0000.