{"id":"CVE-2025-62707","title":"pypdf is a free and open-source pure-python PDF library","summary":"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 inl…","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-834"],"vendor":"pypdf_project","product":"pypdf","affected":["pypdf < 6.1.3"],"patched":["pypdf 6.1.3"],"published":"2025-10-22","updated":"2026-10-08","sourceUpdated":"2026-10-08T11:10:00.250","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-62707","references":[{"url":"https://github.com/py-pdf/pypdf/commit/f2864d6dd9bac7cecd3f4f54308b25ebbfa178f8","label":"security-advisories@github.com"},{"url":"https://github.com/py-pdf/pypdf/pull/3501","label":"security-advisories@github.com"},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.1.3","label":"security-advisories@github.com"},{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-vr63-x8vc-m265","label":"security-advisories@github.com"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62707"},{"url":"https://github.com/py-pdf/pypdf"}],"tags":["nvd","osv","pip"],"epss":0.00444,"epssPercentile":0.3845,"aliases":["GHSA-vr63-x8vc-m265","PYSEC-2026-1833"],"ecosystem":"pip","ingestedAt":"2026-07-08T18:25:53.371Z","slug":"CVE-2025-62707","body":"## Overview\n\npypdf 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.\n\n## Affected\n\n- `pypdf < 6.1.3`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `pypdf 6.1.3`\n\n## Package advisory (CVE-2025-62707)\n\nAffected packages:\n\n- `pypdf < 6.1.3`\n\nPatched in:\n\n- `pypdf 6.1.3`\n\nSource: https://osv.dev/vulnerability/GHSA-vr63-x8vc-m265","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":217956,"id":"CVE-2025-62707","ts":1791459382262,"field":"cvss","old":null,"new":"7.5"},{"seq":217955,"id":"CVE-2025-62707","ts":1791459382262,"field":"severity","old":"medium","new":"high"}]}