CVE-2025-62708Improper Handling of Highly Compressed Data (Data Amplification) in Pypdf

Severity
6.6MEDIUMNVD
EPSS
0.1%
top 78.17%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 22

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.

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected Packages5 packages

CVEListV5py-pdf/pypdf< 6.1.3
debiandebian/pypdf< pypdf 6.9.0-1 (forky)
NVDpypdf_project/pypdf< 6.1.3
PyPIpypdf_project/pypdf< 6.1.3
Debianpypdf_project/pypdf< 6.9.0-1

Patches

🔴Vulnerability Details

3
GHSA
pypdf can exhaust RAM via manipulated LZWDecode streams2025-10-22
OSV
CVE-2025-62708: pypdf is a free and open-source pure-python PDF library2025-10-22
OSV
pypdf can exhaust RAM via manipulated LZWDecode streams2025-10-22

📋Vendor Advisories

2
Red Hat
pypdf: pypdf manipulated LZWDecode streams can exhaust RAM2025-10-22
Debian
CVE-2025-62708: pypdf - pypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3,...2025