CVE-2026-59203 Details
Description
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.
A denial-of-service vulnerability has been identified in the Pillow library, specifically in versions 12.0.0 through 12.2.0. The issue arises in the EPS parser within 'PIL/EpsImagePlugin.py', where a negative byte count in the '%%BeginBinary' directive is not properly validated. This flaw allows a crafted EPS file to cause 'Image.open()' to seek backwards and repeatedly parse the same directive, creating an infinite loop that consumes CPU resources. The vulnerability can be exploited without requiring Ghostscript execution.
Users can upgrade to Pillow version 12.3.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-pg7v-jwj7-p798 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/python-pillow/Pillow/commit/03992618118b4a76b6163cd72ab5ecd684133b83 | [email protected] | Patch |
| https://github.com/python-pillow/Pillow/pull/9708 | [email protected] | Issue TrackingPatch |
| https://github.com/python-pillow/Pillow/releases/tag/12.3.0 | [email protected] | Release Notes |
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-pg7v-jwj7-p798 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python pillow | >= 12.0.0, < 12.3.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | Initial Analysis | [email protected] |
| Jul 14, 2026 | New CVE Received | [email protected] |