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

 

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

Published: November 3, 2026


Vulnerability identifier: #VU158902
CSH Severity: High
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112404
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Pillow

How to mitigate CVE-2026-112404

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins