Use of uninitialized resource in Pillow - CVE-2026-112897
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose previously used heap memory from an application processing attacker-supplied TIFF images.
The vulnerability exists due to use of uninitialized heap memory in the _decodeStrip() and _decodeTile() functions in Pillow's src/libImaging/TiffDecode.c when decoding TIFF strips or tiles containing fewer compressed image rows than declared. A remote attacker can submit a crafted TIFF containing a short JPEG stream or prematurely terminated Group 4 fax stream to an application that processes images and exposes pixel-derived output to retrieve stale process memory copied into the undecoded image rows. The decoder copies the entire declared row range after libtiff reports success, even though part of the buffer remains unwritten.