{"id":"CVE-2026-59203","published":"2026-07-14T15:43:58Z","modified":"2026-07-15T13:52:17Z","title":"Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary directive, allowing a crafted EPS file to cause Image.open() to seek backwards to the same directive and parse it repeatedly in an infinite loop. This issue is fixed in version 12.3.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00399,"percentile":0.35027,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-pg7v-jwj7-p798","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/9708","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/03992618118b4a76b6163cd72ab5ecd684133b83","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/12.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":7.01},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 12.0.0, < 12.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-15T13:52:13.769597Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=12.0.0, <12.3.0"],"patched":["12.3.0"],"from":["GHSA-pg7v-jwj7-p798","PYSEC-2026-3452"],"provenance":"source"}],"summary":{"text":"The Pillow imaging library's EPS parser (PIL/EpsImagePlugin.py) mishandles a negative byte count in the %%BeginBinary directive, causing it to loop indefinitely on certain input. An attacker who can get a crafted EPS file to be opened with Image.open() over the network can trigger a denial of service, with no authentication or user interaction required and no special configuration needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:13Z"},"euvd":{"id":"EUVD-2026-43741","exploited":false,"provenance":"source"}}