Heap-based buffer overflow in Pillow - CVE-2026-112395

 

Heap-based buffer overflow in Pillow - CVE-2026-112395

Published: November 19, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service and potentially disclose adjacent heap memory through decoded pixel data.

The vulnerability exists due to a heap buffer over-read in Pillow's tiled TIFF decoder when the copy4 row unpacker reads from a tile buffer that _decodeTile has not verified is large enough. A remote attacker can submit a crafted tiled TIFF to an application that decodes it with Pillow to crash the process or potentially expose adjacent heap memory.


Affected software

Pillow
Ubuntu
python3-pil (Ubuntu package)

How to mitigate CVE-2026-112395

Install security update from vendor's website.

Pillow - update to 13.0.0
python3-pil (Ubuntu package) - addressed in versions 9.0.1-1ubuntu0.7, 10.2.0-1ubuntu1.5, 12.1.1-2ubuntu1.5, 12.3.0-1ubuntu2

External References

Related Security Bulletins