CVE-2026-59203
published medium CVSS 3.1 · 5.3Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| python-pillow | — | Pillow>= 12.0.0, < 12.3.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | resolute | pillow | Advisory build | 12.1.1-2ubuntu1.4 | USN-8999-1 |
| Ubuntu | resolute | python3-pil | Advisory build | 12.1.1-2ubuntu1.4 | USN-8999-1 |
| Ubuntu | resolute | python3-pil.imagetk | Advisory build | 12.1.1-2ubuntu1.4 | USN-8999-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| python-pillow | Pillow | >= 12.0.0, < 12.3.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-835 CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
References
4Provider assertions
2GitHub_M · cna
Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d4a539deb40a09a1b8d5f4daa1beb264ce8bda0f5465c59fa873a82600b286b7
- Ingested
- 23 Sep 2026, 09:22:29 UTC
- Source record
- Official CVE record