Infinite loop Affecting pillow package, versions [7.2.0,13.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PILLOW-21277795
  • published20 Oct 2026
  • disclosed19 Oct 2026
  • creditUnknown

Introduced: 19 Oct 2026

NewCVE-2026-112390  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade pillow to version 13.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Infinite loop via incorrect initialization of _n_frames and is_animated in TiffImagePlugin.TiffImageFile, where _n_frames was set inside _open() rather than __init__(), allowing it to be overwritten by a MicImageFile subclass. An attacker can supply a multi-frame TIFF (or MIC) image that causes _n_frames and is_animated to be set to incorrect values, leading to a crash when iterating frames.

Note: This is only exploitable if the optional olefile package is installed.

CVSS Base Scores

version 4.0
version 3.1