Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pypdf
  4. ›
  5. CVE-2025-62707

CVE-2025-62707: pypdf possibly loops infinitely when reading DCT inline images without EOF marker

October 22, 2025 (updated October 23, 2025)

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.

References

  • github.com/advisories/GHSA-vr63-x8vc-m265
  • github.com/py-pdf/pypdf
  • github.com/py-pdf/pypdf/commit/f2864d6dd9bac7cecd3f4f54308b25ebbfa178f8
  • github.com/py-pdf/pypdf/pull/3501
  • github.com/py-pdf/pypdf/releases/tag/6.1.3
  • github.com/py-pdf/pypdf/security/advisories/GHSA-vr63-x8vc-m265
  • nvd.nist.gov/vuln/detail/CVE-2025-62707

Code Behaviors & Features

Detect and mitigate CVE-2025-62707 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.1.3

Fixed versions

  • 6.1.3

Solution

Upgrade to version 6.1.3 or above.

Weakness

  • CWE-834: Excessive Iteration

Source file

pypi/pypdf/CVE-2025-62707.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 26 Oct 2025 12:20:41 +0000.