pypdf can exhaust RAM via manipulated LZWDecode streams
### Impact 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. ### Patches This has been fixed in [pypdf==6.1.3](https://github.com/py-pdf/pypdf/releases/tag/6.1.3). ### Workarounds If you cannot upgrade yet, consider applying the changes from PR [#3502](https://github.com/py-pdf/pypdf/pull/3502).
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2025-62708US | high7.5 | — | ||
pypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This req… | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/advisories/GHSA-jfx9-29x2-rv3jADVISORY
- https://github.com/py-pdf/pypdfPACKAGE
- https://github.com/py-pdf/pypdf/commit/e51d07807ffcdaf18077b9486dadb3dc05b368daWEB
- https://github.com/py-pdf/pypdf/pull/3502WEB
- https://github.com/py-pdf/pypdf/releases/tag/6.1.3WEB
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3jWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-62708ADVISORY
- https://pypi.org/project/pypdfPACKAGE
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan