CVE-2026-59198
Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
6.5
MEDIUM
CVSS 3.1
EPSS 0.31%
Description
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.
How to fix CVE-2026-59198
To remediate CVE-2026-59198, upgrade the affected package to a fixed version below.
- —upgrade to 12.3.0 or later
- —no fix listed
- —upgrade to 12.3.0 or later
Is CVE-2026-59198 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- >= 5.2.0, < 12.3.0
- from 0
- >= 5.2.0, < 12.3.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L |