Use-after-free in Pillow - CVE-2026-112396

 

Use-after-free in Pillow - CVE-2026-112396

Published: November 3, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by crashing an application that encodes untrusted images as TIFF in memory.

The vulnerability exists due to a heap use-after-free in Pillow's libtiff encoder when an encoding failure frees the output buffer without closing the TIFF handle, allowing cleanup to write into freed memory. A remote attacker can cause an application to re-encode attacker-influenced images with a rejected tag, such as the floating-point Predictor value 3 on integer sample data, to cause a denial of service.


Affected software

Pillow

How to mitigate CVE-2026-112396

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins