Infinite loop in Pillow - CVE-2026-112390

 

Infinite loop in Pillow - CVE-2026-112390

Published: November 3, 2026


Vulnerability identifier: #VU158891
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112390
CWE-ID: CWE-835
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 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.


Affected software

Pillow

How to mitigate CVE-2026-112390

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins