CVE-2025-62708: pypdf can exhaust RAM via manipulated LZWDecode streams
(updated )
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 →