| Name | CVE-2025-62707 |
| 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. |
| Source | CVE (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 Bugs | 1118755 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| pypdf (PTS) | bookworm | 3.4.1-1+deb12u1 | fixed |
| forky, sid, trixie | 5.4.0-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| pypdf | source | bookworm | (not affected) | |||
| pypdf | source | (unstable) | (unfixed) | 1118755 |
[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)