CVE-2025-62707
pypdf possibly loops infinitely when reading DCT inline images without EOF marker
EPSS 0.40%
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.
How to fix CVE-2025-62707
To remediate CVE-2025-62707, upgrade the affected package to a fixed version below.
- PyPI/pypdf—upgrade to 6.1.3 or later
- —upgrade to 6.1.3 or later
Is CVE-2025-62707 being exploited?
Low — EPSS is 0.4%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 6.1.3
- from 0, < 6.1.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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/E:U |