Allocation of Resources Without Limits or Throttling 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.38% (33rd 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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PILLOW-22549577
  • published14 Nov 2026
  • disclosed12 Nov 2026
  • creditLittlehamsterXu, toporone

Introduced: 12 Nov 2026

NewCVE-2026-128066  (opens in a new tab)
CWE-770  (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 Allocation of Resources Without Limits or Throttling via ImageFileDirectory_v2.load() in src/PIL/TiffImagePlugin.py, which reads the out-of-line value of every IFD entry into a separate bytes object stored in _tagdata without bounding the cumulative total across entries. An attacker can supply a TIFF, JPEG, PNG, WebP, or MPO file whose IFD entries each declare an offset and count that covers the entire file body, causing memory consumption proportional to N × file size - quadratic in the file size - because nothing prevents every entry from aliasing the same bytes. A 144 KB TIFF with 12,000 such entries causes Image.open() to retain 1.6 GiB of tag data with no exception or warning, since the image declares a 1×1 pixel size and the decompression-bomb check is never triggered. The same parser is reached from getexif() and ImageOps.exif_transpose() for PNG, JPEG, WebP, and MPO, and from Image.open() directly for TIFF and JPEG (via _read_dpi_from_exif()), so no additional API call is required to trigger the allocation.

CVSS Base Scores

version 4.0
version 3.1