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

CVE-2025-62708: pypdf can exhaust RAM via manipulated LZWDecode streams

October 22, 2025 (updated October 23, 2025)

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the content stream of a page using the LZWDecode filter.

References

  • github.com/advisories/GHSA-jfx9-29x2-rv3j
  • github.com/py-pdf/pypdf
  • github.com/py-pdf/pypdf/commit/e51d07807ffcdaf18077b9486dadb3dc05b368da
  • github.com/py-pdf/pypdf/pull/3502
  • github.com/py-pdf/pypdf/releases/tag/6.1.3
  • github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j
  • nvd.nist.gov/vuln/detail/CVE-2025-62708

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.1.3

Fixed versions

  • 6.1.3

Solution

Upgrade to version 6.1.3 or above.

Weakness

  • CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)

Source file

pypi/pypdf/CVE-2025-62708.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 26 Oct 2025 00:19:11 +0000.