Unchecked Input for Loop Condition Affecting pillow package, versions [,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.43% (37th 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-21430998
  • published22 Oct 2026
  • disclosed21 Oct 2026
  • creditNuno Lopes

Introduced: 21 Oct 2026

NewCVE-2026-96643  (opens in a new tab)
CWE-606  (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 Unchecked Input for Loop Condition via the load method in src/PIL/Image.py, where a loop consuming repeated Exif\x00\x00 headers in Exif data has no upper bound on iterations. An attacker can supply image data with an arbitrarily long sequence of repeated Exif headers, causing the process to spin indefinitely and crash the application.

CVSS Base Scores

version 4.0
version 3.1