{"id":"CVE-2026-59935","published":"2026-07-08T19:34:15Z","modified":"2026-07-09T13:36:17Z","title":"pypdf: Possible infinite loop for not terminated inline images (ASCII85 and ASCIIHex filter)","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.14.2, an attacker can craft a PDF with a page content stream containing a not terminated inline image that uses the ASCII85 or ASCIIHex filters, causing an infinite loop during parsing such as when extracting page text. This issue is fixed in version 6.14.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0062,"percentile":0.5063,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-g867-7843-wf8q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3892","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/5a33a46416aa1ae6c025ff90a3cca57631fdafd2","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.14.2","tags":["x_refsource_MISC"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.13},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.14.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-09T13:36:07.945731Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.14.2"],"patched":["6.14.2"],"from":["GHSA-g867-7843-wf8q","PYSEC-2026-3613"],"provenance":"source"}],"summary":{"text":"The flaw is in pypdf, the pure-Python PDF library, where a page content stream containing an unterminated inline image using the ASCII85 or ASCIIHex filters causes an infinite loop during parsing, such as when extracting page text. An attacker who can supply a crafted PDF to an application that parses it over the network, without authentication or user interaction, can cause the parsing process to hang indefinitely and make the service unavailable.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:56Z"},"euvd":{"id":"EUVD-2026-42365","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","parents":[{"from":"CVE-2026-59936","to":"CVE-2026-59935","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.14.1","toFixed":"6.14.2","daysApart":0},{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_data_structures.py"],"commits":["https://github.com/py-pdf/pypdf/commit/5a33a46416aa1ae6c025ff90a3cca57631fdafd2","https://github.com/py-pdf/pypdf/commit/ec3b14596186c40caca7cf8ab9b2155203e01b5b"],"basis":"shared function","functions":["_read_inline_image"]}]},{"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"}]}],"children":[{"from":"CVE-2026-59935","to":"CVE-2026-113790","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_data_structures.py"],"commits":["https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/5a33a46416aa1ae6c025ff90a3cca57631fdafd2"],"basis":"shared function","functions":["_read_inline_image"]}]},{"from":"CVE-2026-59935","to":"CVE-2026-113791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_data_structures.py"],"commits":["https://github.com/py-pdf/pypdf/commit/18bd2981a74479483a0b9507602c58a63d6c9b12","https://github.com/py-pdf/pypdf/commit/5a33a46416aa1ae6c025ff90a3cca57631fdafd2"],"basis":"shared function","functions":["_read_inline_image"]}]}],"packageHistory":[{"cve":"CVE-2026-59937","published":"2026-07-08","fixed":"6.14.0","kev":false},{"cve":"CVE-2026-59938","published":"2026-07-08","fixed":"6.14.0","kev":false},{"cve":"CVE-2026-59936","published":"2026-07-08","fixed":"6.14.1","kev":false},{"cve":"CVE-2026-59935","published":"2026-07-08","fixed":"6.14.2","kev":false},{"cve":"CVE-2026-71852","published":"2026-08-07","fixed":"6.15.0","kev":false,"link":{"from":"CVE-2026-59935","to":"CVE-2026-71852","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.14.2","toFixed":"6.15.0","daysApart":30}]}},{"cve":"CVE-2026-71870","published":"2026-08-07","fixed":"6.15.0","kev":false,"link":{"from":"CVE-2026-59935","to":"CVE-2026-71870","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.14.2","toFixed":"6.15.0","daysApart":30}]}},{"cve":"CVE-2026-82398","published":"2026-08-31","fixed":"6.15.0","kev":false,"link":{"from":"CVE-2026-59935","to":"CVE-2026-82398","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.14.2","toFixed":"6.15.0","daysApart":54}]}}],"package":"PyPI:pypdf"}}