{"id":"CVE-2026-59936","published":"2026-07-08T19:34:22Z","modified":"2026-07-09T13:28:21Z","title":"pypdf: Possible infinite loop for not terminated inline images","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.14.1, an attacker can craft a PDF with a page content stream containing a not terminated inline image, causing an infinite loop during inline image end marker detection such as when extracting page text. This issue is fixed in version 6.14.1.","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.44004,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-5xf7-4p34-54qr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3891","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/ec3b14596186c40caca7cf8ab9b2155203e01b5b","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.14.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":8.8},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.14.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-09T13:26:41.429218Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.14.1"],"patched":["6.14.1"],"from":["GHSA-5xf7-4p34-54qr","PYSEC-2026-3612"],"provenance":"source"}],"summary":{"text":"The flaw is an infinite loop in pypdf, a pure-Python PDF library, triggered during inline image end-marker detection when a page content stream contains an unterminated inline image, such as during page text extraction. An attacker who can supply a crafted PDF can cause resource exhaustion that leads to denial of service, reachable over the network with no privileges or user interaction required; the issue is fixed in version 6.14.1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:56Z"},"euvd":{"id":"EUVD-2026-42366","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","children":[{"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-2026-59936","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/ec3b14596186c40caca7cf8ab9b2155203e01b5b"],"basis":"shared function","functions":["_read_inline_image"]}]},{"from":"CVE-2026-59936","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/ec3b14596186c40caca7cf8ab9b2155203e01b5b"],"basis":"shared function","functions":["_read_inline_image"]}]}],"packageHistory":[{"cve":"CVE-2026-54651","published":"2026-06-22","fixed":"6.13.1","kev":false},{"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,"link":{"from":"CVE-2026-59938","to":"CVE-2026-59936","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.14.0","toFixed":"6.14.1","daysApart":0}]}},{"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},{"cve":"CVE-2026-71870","published":"2026-08-07","fixed":"6.15.0","kev":false}],"package":"PyPI:pypdf"}}