Infinite loop in Pillow - CVE-2026-112390
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by indefinitely occupying an image-processing worker at 100% CPU utilization.
The vulnerability exists due to an infinite loop in Pillow's inherited TiffImageFile.n_frames property when counting frames in a Microsoft Image Composer (MIC) file containing an embedded TIFF with three or more chained image directories. A remote attacker can supply a crafted MIC file to an application that evaluates im.n_frames, directly or through saving with save_all=True, to trigger non-terminating frame enumeration because MicImageFile.tell() returns a constant container stream index rather than the advancing TIFF frame index.
Exploitation requires the optional olefile package to be installed.