CVE-2025-62707: PYSEC-2026-1833 - pypdf possibly loops infinitely when reading DCT inline images without EOF marker
CVE-2025-62707 · Severity: high · CVSS 7.5 · Published 2025-10-22
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.
No. Junglewise Threat Intelligence has no report of CVE-2025-62707 being exploited in the wild.
How severe is CVE-2025-62707?
High severity, with a CVSS score of 7.5, published 22 October 2025.
Which products and versions are affected?
pypdf (PyPI) ECOSYSTEM:introduced=0,fixed=6.1.3.
Is there a fix for CVE-2025-62707?
Yes. pypdf (PyPI): upgrade to 6.1.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-62707?
Check whether you run Pypdf Project Pypdf or pypdf (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.