Use-after-free in Pillow - CVE-2026-112396
Published: November 3, 2026
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.