What’s Vulnerable › Vulnerabilities

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

Description

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 requires parsing the content stream of a page using the LZWDecode filter. This has been fixed in pypdf version 6.1.3.

Affected products

How to fix

Upgrade to a fixed version: py-pdf pypdf 6.1.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-62708 or the next vulnerability affects your stack