{"id":"CVE-2025-62707","published":"2025-10-22T21:36:32Z","modified":"2025-10-23T15:41:41Z","title":"pypdf affected by possible infinite loop when reading DCT inline images without EOF marker","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00444,"percentile":0.39496,"provenance":"source"},"cwes":[{"id":"CWE-834","name":"Excessive Iteration"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-vr63-x8vc-m265","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3501","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/f2864d6dd9bac7cecd3f4f54308b25ebbfa178f8","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.1.3","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":7.9},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.1.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-23T15:41:24.281982Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.1.3"],"patched":["6.1.3"],"from":["GHSA-vr63-x8vc-m265","PYSEC-2026-1833"],"provenance":"source"}],"summary":{"text":"The pypdf library, a pure-Python PDF library from py-pdf, contains a flaw in how it parses inline images that use the DCTDecode filter when no end-of-file marker is present, causing it to enter an infinite loop. An attacker can trigger this by supplying a crafted PDF to an application that parses the content stream of a page containing such an inline image, with no authentication or user interaction required and no special configuration needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:58Z"},"euvd":{"id":"EUVD-2025-35625","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","children":[{"from":"CVE-2025-62707","to":"CVE-2026-59935","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_image_inline.py"],"commits":["https://github.com/py-pdf/pypdf/commit/f2864d6dd9bac7cecd3f4f54308b25ebbfa178f8","https://github.com/py-pdf/pypdf/commit/5a33a46416aa1ae6c025ff90a3cca57631fdafd2"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-36464","published":"2023-06-27","fixed":"3.9.0","kev":false},{"cve":"CVE-2023-46250","published":"2023-10-31","fixed":"3.17.0","kev":false},{"cve":"CVE-2025-55197","published":"2025-08-13","fixed":"6.0.0","kev":false,"link":{"from":"CVE-2025-55197","to":"CVE-2025-62707","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.0.0","toFixed":"6.1.3","daysApart":70}]}},{"cve":"CVE-2025-62707","published":"2025-10-22","fixed":"6.1.3","kev":false},{"cve":"CVE-2025-62708","published":"2025-10-22","fixed":"6.1.3","kev":false},{"cve":"CVE-2025-66019","published":"2025-11-25","fixed":"6.4.0","kev":false,"link":{"from":"CVE-2025-62707","to":"CVE-2025-66019","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.1.3","toFixed":"6.4.0","daysApart":34}]}},{"cve":"CVE-2026-22690","published":"2026-01-10","fixed":"6.6.0","kev":false}],"package":"PyPI:pypdf"}}