Improper Handling of Highly Compressed Data (Data Amplification) 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.33% (26th 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-21430991
  • published22 Oct 2026
  • disclosed21 Oct 2026
  • creditYazan Balawneh

Introduced: 21 Oct 2026

NewCVE-2026-96637  (opens in a new tab)
CWE-409  (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 Improper Handling of Highly Compressed Data (Data Amplification) via the seek method in src/PIL/SpiderImagePlugin.py, which lacks a decompression bomb check after seeking to a new frame in a SPIDER format image. An attacker can supply a SPIDER image with an excessively large frame size, causing unbounded memory allocation when a user opens and seeks through the file.

CVSS Base Scores

version 4.0
version 3.1