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.
Affected products
python: pillow
References5
- github.com/python-pillow/Pillow/security/advisories/GHSA-pg7v-j… ExploitVendor Advisory
- github.com/python-pillow/Pillow/security/advisories/GHSA-pg7v-j… ExploitVendor Advisory
- github.com/python-pillow/Pillow/commit/03992618118b4a76b6163cd7… Patch
- github.com/python-pillow/Pillow/pull/9708 Issue TrackingPatch
- github.com/python-pillow/Pillow/releases/tag/12.3.0 Release Notes
Metrics
- CVSS 3.1
-
7.5
HIGH
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - EPSS — exploit probability
- 0% percentile: 35 · as of 15 November 2026
- CWE
- CWE-835
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.