Improper Handling of Highly Compressed Data (Data Amplification) Affecting pillow package, versions [9.1.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.35% (29th 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-21430999
  • published22 Oct 2026
  • disclosed21 Oct 2026
  • creditYazan Balawneh

Introduced: 21 Oct 2026

NewCVE-2026-96638  (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) in BmpImagePlugin.py via the RLE-compressed BMP decoder, where the decode method appends null bytes to an output buffer without bounding the amount against the expected destination length. An attacker can supply a BMP image with malformed RLE delta escape codes that cause unbounded memory allocation, crashing the process.

CVSS Base Scores

version 4.0
version 3.1