Out-of-bounds read in Pillow - CVE-2026-59198
Published: July 7, 2026
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.