
CVE catalog
CVE-2026-59203
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 t
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pillow | sid | 13.0.0-1 | fixed |
| Debian | pillow | forky | 12.3.0-1 | fixed |
| Debian | pillow | trixie | 11.1.0-5+deb13u4 | not affected |
| Debian | pillow | trixie-security | 11.1.0-5+deb13u3 | not affected |
| Debian | pillow | bookworm | 9.4.0-1.1+deb12u1 | not affected |
| Debian | pillow | bookworm-security | 9.4.0-1.1+deb12u1 | not affected |
| Pip | pillow | Not reported | 12.3.0 | fixed |
| PyPI | pillow | Not reported | 12.3.0 | fixed |
| Ubuntu | pillow | 26.04 | 11.3.0-1ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 11.3.0-1ubuntu2 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.0.0-1ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-1ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-2ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-2ubuntu1.1 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-2ubuntu1.2 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-2ubuntu1.3 | vulnerable |
| Cpe | pillow | Not reported | 12.3.0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pillow | source | sid | 12.3.0-1 | not yet assigned | Not reported | [1142274] |
| Debian | pillow | source | forky | 12.3.0-1 | not yet assigned | Not reported | [1142274] |
| Debian | pillow | source | trixie | Not affected | unimportant | Not reported | [1142274] |
| Debian | pillow | source | bookworm | Not affected | unimportant | Not reported | [1142274] |
| Pip | pillow | pip | Not reported | 12.3.0 | Not reported | Not reported | Not reported |
| PyPI | pillow | PyPI | Not reported | 12.3.0 | Not reported | GHSA-PG7V-JWJ7-P798 | Not reported |
| Cpe | pillow | cpe | Not reported | 12.3.0 | Not reported | NVD-CVE-2026-59203 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-pil]Not affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· arm64 · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· amd64 · bookworm-securityNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· arm64 · bookworm-securityNot affected
nvd · pillow · debian · bookworm
- [python3-pil.imagetk]Not affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· arm64 · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· amd64 · bookworm-securityNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· arm64 · bookworm-securityNot affected
nvd · pillow · debian · bookworm
- [python-pil-doc]Not affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· all · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· all · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· all · bookworm-securityNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· all · bookworm-securityNot affected
nvd · pillow · debian · bookworm
Observed:
References
- [https://github.com/python-pillow/Pillow/commit/03992618118b4a76b6163cd72ab5ecd684133b83]
- [https://github.com/python-pillow/Pillow/pull/9708]
- [https://github.com/python-pillow/Pillow/releases/tag/12.3.0]
- [https://github.com/python-pillow/Pillow/security/advisories/GHSA-pg7v-jwj7-p798]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-59203]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-59203]
- [https://osv.dev/vulnerability/GHSA-pg7v-jwj7-p798]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-59203]
- [https://security-tracker.debian.org/tracker/CVE-2026-59203]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-59203.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]