CVE-2026-59198
Pillow: Pillow: Information disclosure via TGA RLE encoder out-of-bounds read
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 15, 2026
Updated · October 15, 2026
Description
A flaw was found in Pillow, a Python imaging library. When saving a mode 1 image with TGA RLE compression, the TGA RLE encoder reads beyond its allocated memory buffer. This out-of-bounds read allows adjacent process heap memory to be copied into the generated TGA file, potentially leading to information disclosure.
Statement
The impact is limited to information disclosure of adjacent heap memory fragments in the generated output file. Exploitation requires the application to save attacker-influenced images in TGA format with RLE compression, which is an uncommon operation in affected Red Hat products.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 6.5CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L
CWE-125 · Out-of-bounds Read