CVE-2026-59198CWE-125

Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images

Medium · published July 14, 2026

CVSS v3.1
6.5
EPSS
0%
Percentile
22.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00313 · 22.9th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2026-07-14T16:07Z
EPSS history
Timeline
  • 14 JUL 16:07Z
    Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
    cvelistv5