Out-of-bounds read in Pillow - CVE-2026-59198

 

Out-of-bounds read in Pillow - CVE-2026-59198

Published: July 7, 2026


Vulnerability identifier: #VU137004
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-59198
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Alex Clark and Contributors
Affected software:
Pillow

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to an out-of-bounds read in the TGA RLE encoder when saving a mode "1" image through the public save API with TGA RLE compression. A remote attacker can save a specially crafted image to disclose sensitive information.

The issue can serialize adjacent process heap bytes into the generated TGA file, and a maximum-width single-row image can expose nearly the full adjacent heap window.


How to mitigate CVE-2026-59198

Install security update from vendor's website.

Sources