CVE-2025-62707Excessive Iteration in Pypdf

Severity
6.6MEDIUMNVD
EPSS
0.0%
top 85.68%
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 an infinite loop. This requires parsing the content stream of a page which has an inline image using the DCTDecode 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
OSV
CVE-2025-62707: pypdf is a free and open-source pure-python PDF library2025-10-22
GHSA
pypdf possibly loops infinitely when reading DCT inline images without EOF marker2025-10-22
OSV
pypdf possibly loops infinitely when reading DCT inline images without EOF marker2025-10-22

📋Vendor Advisories

2
Red Hat
pypdf: pypdf affected by possible infinite loop when reading DCT inline images without EOF marker2025-10-22
Debian
CVE-2025-62707: pypdf - pypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3,...2025