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

 

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

Published: November 3, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to trigger an out-of-bounds heap read that can terminate the process and may expose process memory.

The vulnerability exists due to an out-of-bounds read in Pillow's libtiff-backed TIFF encoder when saving an image with retained ColorMap metadata whose plane size is inconsistent with the sample depth. A remote attacker can supply a crafted 16-bit TIFF containing 768 SHORT ColorMap values that an application loads and saves with the relevant metadata retained to trigger a 131072-byte read from a plane pointer within a 1536-byte allocation, potentially terminating the process or exposing process memory during encoding.


Affected software

Pillow

How to mitigate CVE-2026-112896

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins