Out-of-bounds read in Pillow - CVE-2026-112404
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose process heap memory, including pointer values, and cause a denial of service.
The vulnerability exists due to an out-of-bounds read in the _decodeTile() and _decodeAsRGBA() functions in Pillow's src/libImaging/TiffDecode.c when decoding malformed compressed TIFF images. These functions do not verify that the unpacker's input row fits within the row produced by libtiff when Pillow and libtiff interpret image tags differently. A remote attacker can submit a specially crafted TIFF image to an application that loads it to expose adjacent heap bytes through returned image pixels or crash the application process.
The tile decode buffer is reused across tiles, so increasing the tile count does not increase the amount of distinct heap memory exposed.