CVE-2026-59198Python Pillow
High 7.5 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 14, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
Pillow is a Python imaging library. From 5.2.0 until 12.3.0, Pillow's TGA RLE encoder reads past its packed row buffer when saving a mode 1 image with TGA RLE compression, allowing adjacent process heap bytes to be copied into the generated TGA file. This issue is fixed in version 12.3.0.
What to do
- Apply the vendor's security update for Pillow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
≥ 5.2.0 < 12.3.0 |
12.3.0 |
pip install "pillow>=12.3.0" |
| PyPI | pillow |
≥ 5.2.0 < 12.3.0 |
12.3.0 |
pip install "pillow>=12.3.0" |
Per OSV / GitHub Advisories (GHSA-fj7v-r99m-22gq, PYSEC-2026-3494). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | ≥ 5.2.0 < 12.3.0 |
Official advisories
- Security update for python-Pillow · SUSE · openSUSE-SU-2026:21544-1 · Aug 10, 2026 High
- Security update for python-Pillow · SUSE · SUSE-SU-2026:23217-1 · Aug 10, 2026 High
- Security update for python-Pillow · SUSE · SUSE-SU-2026:23228-1 · Aug 10, 2026 High
Also: SUSE (+3)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Release Notes
- github.com Exploit Vendor Advisory