CVE-2026-59203
CVE-2026-59203 · Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 5.3 · Medium · EPSS 0.4% · Fix available
- Published
- Updated
Affected products and versions
pillow
- Versions
- >= 12.0.0, < 12.3.0: Affected
No fix published
pillow Debian:14
- Versions
- 11.1.0-5
- 11.2.1-1
- 11.3.0-1
- 12.0.0-1
- 12.1.0-1
- 12.1.1-1
- 12.1.1-2
- 12.2.0-1
- Affected ranges
- ECOSYSTEM: < 12.3.0-1
Update to 12.3.0-1
pillow PyPI
- Versions
- 12.0.0
- 12.1.0
- 12.1.1
- 12.2.0
- Affected ranges
- ECOSYSTEM: ≥ 12.0.0, < 12.3.0
Update to 12.3.0
pillow Ubuntu:26.04:LTS
- Versions
- 11.3.0-1ubuntu1
- 11.3.0-1ubuntu2
- 12.0.0-1ubuntu1
- 12.1.1-1ubuntu1
- 12.1.1-2ubuntu1
- 12.1.1-2ubuntu1.1
- 12.1.1-2ubuntu1.2
- 12.1.1-2ubuntu1.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-pg7v-jwj7-p798
- https://github.com/python-pillow/Pillow/pull/9708
- https://github.com/python-pillow/Pillow/commit/03992618118b4a76b6163cd72ab5ecd684133b83
- https://github.com/python-pillow/Pillow/releases/tag/12.3.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-59203