Heap-based buffer overflow in Pillow - CVE-2026-112393
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service and potentially execute arbitrary code.
The vulnerability exists due to a heap-based buffer overflow in Pillow's _tiffWriteProc function in src/libImaging/TiffDecode.c when saving a TIFF image through libtiff to a destination without a usable file descriptor, such as io.BytesIO. A remote attacker can supply a crafted single-band TIFF with an attacker-controlled out-of-line tag value to a service that opens and re-saves the image to trigger an undersized allocation and overwrite adjacent heap memory, causing a process crash or potentially executing arbitrary code.
The reported code-execution chain additionally requires addresses disclosed by a separate vulnerability.
Affected software
Fedora
python-pillow
How to mitigate CVE-2026-112393
python-pillow - addressed in versions 11.3.0-14.fc43, 12.3.0-5.fc44, 12.3.0-5.fc45