Function Call With Incorrect Argument Type in Pillow - CVE-2026-112902
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive process memory or cause a denial of service.
The vulnerability exists due to incorrect argument types passed to TIFFSetField() in Pillow's PyImaging_LibTiffEncoderNew() function when re-encoding images as TIFF through libtiff. A remote attacker can supply an image containing crafted TIFF tags that cause libtiff to interpret scalar values as pointers or byte counts, copying process memory into the output image or crashing the process.
Preserving metadata with tiffinfo=im.tag_v2 allows a 64-bit ActiveArea entry to trigger a 16-byte read from an attacker-chosen address.