Use of uninitialized resource in Pillow - CVE-2026-112897

 

Use of uninitialized resource in Pillow - CVE-2026-112897

Published: November 3, 2026


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

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.


Affected software

Pillow

How to mitigate CVE-2026-112897

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins