CVE-2025-62707: pypdf possibly loops infinitely when reading DCT inline images without EOF marker
(updated )
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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →