CVE-2025-62707

NameCVE-2025-62707
Descriptionpypdf 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1118755

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pypdf (PTS)bookworm3.4.1-1+deb12u1fixed
forky, sid, trixie5.4.0-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pypdfsourcebookworm(not affected)
pypdfsource(unstable)(unfixed)1118755

Notes

[trixie] - pypdf <no-dsa> (Minor issue)
[bookworm] - pypdf <not-affected> (Vulnerable code introduced later)
https://github.com/py-pdf/pypdf/security/advisories/GHSA-vr63-x8vc-m265
https://github.com/py-pdf/pypdf/pull/3501
Introduced with: https://github.com/py-pdf/pypdf/commit/23a81baad19e14ecaaa1949e52edd531b1c49efd (4.3.0)
Fixed by: https://github.com/py-pdf/pypdf/commit/f2864d6dd9bac7cecd3f4f54308b25ebbfa178f8 (6.1.3)

Search for package or bug name: Reporting problems