| Name | CVE-2026-59203 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| pillow (PTS) | bullseye | 8.1.2+dfsg-0.3+deb11u2 | fixed |
| bullseye (security) | 8.1.2+dfsg-0.3+deb11u3 | fixed | |
| bookworm, bookworm (security) | 9.4.0-1.1+deb12u1 | fixed | |
| trixie | 11.1.0-5+deb13u4 | fixed | |
| trixie (security) | 11.1.0-5+deb13u3 | fixed | |
| forky, sid | 12.2.0-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| pillow | source | bullseye | (not affected) | |||
| pillow | source | bookworm | (not affected) | |||
| pillow | source | trixie | (not affected) | |||
| pillow | source | (unstable) | (unfixed) |
[trixie] - pillow <not-affected> (Vulnerable code not present)
[bookworm] - pillow <not-affected> (BeginBinary support introduced in v12.0.0)
[bullseye] - pillow <not-affected> (BeginBinary support introduced in v12.0.0)
https://github.com/python-pillow/Pillow/security/advisories/GHSA-pg7v-jwj7-p798
https://github.com/python-pillow/Pillow/pull/9708
Fixed by: https://github.com/python-pillow/Pillow/commit/03992618118b4a76b6163cd72ab5ecd684133b83 (12.3.0)
Introduced by: https://github.com/python-pillow/Pillow/commit/03992618118b4a76b6163cd72ab5ecd684133b83 (12.0.0)