Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-gg2r-wvfm-q9rx

Опубликовано: 21 окт. 2026
Источник: github
Github: Прошло ревью
CVSS4: 8.7

Описание

Pillow: MSP RLE decoder expands a tiny file into unbounded memory

Summary

The MSP RLE decoder expands run-length data into an in-memory buffer with no cap tied to the declared image size. A small file that passes the pixel-count check can force hundreds of megabytes or more of allocation when the application loads pixels.

Details

The MSP decoder writes each run into an unbounded io.BytesIO and can expand roughly 85x per run:

  • src/PIL/MspImagePlugin.py:144-146

Impact

Memory-exhaustion denial of service from a tiny crafted image in any application that loads pixels. The expansion is decoupled from the declared pixel count, so MAX_IMAGE_PIXELS does not bound it.

Пакеты

Наименование

pillow

pip
Затронутые версииВерсия исправления

>= 4.1.0, < 13.0.0

13.0.0

EPSS

Процентиль: 44%
0.00503
Низкий

8.7 High

CVSS4

Дефекты

CWE-409

Связанные уязвимости

CVSS3: 7.5
ubuntu
29 дней назад

Pillow is a Python imaging library. From 4.1.0 until 13.0.0, Pillow's MSP RLE decoder can expand a small file into an unbounded in-memory buffer. The decoder writes run-length output to BytesIO without limiting expansion to the declared image size. An attacker can supply a crafted MSP image to an application that loads its pixels. This can exhaust memory and deny service even when the declared pixel count passes the decompression-bomb check. This issue is fixed in version 13.0.0.

CVSS3: 7.5
redhat
29 дней назад

Pillow is a Python imaging library. From 4.1.0 until 13.0.0, Pillow's MSP RLE decoder can expand a small file into an unbounded in-memory buffer. The decoder writes run-length output to BytesIO without limiting expansion to the declared image size. An attacker can supply a crafted MSP image to an application that loads its pixels. This can exhaust memory and deny service even when the declared pixel count passes the decompression-bomb check. This issue is fixed in version 13.0.0.

CVSS3: 7.5
nvd
29 дней назад

Pillow is a Python imaging library. From 4.1.0 until 13.0.0, Pillow's MSP RLE decoder can expand a small file into an unbounded in-memory buffer. The decoder writes run-length output to BytesIO without limiting expansion to the declared image size. An attacker can supply a crafted MSP image to an application that loads its pixels. This can exhaust memory and deny service even when the declared pixel count passes the decompression-bomb check. This issue is fixed in version 13.0.0.

CVSS3: 7.5
msrc
около 16 часов назад

Pillow: MSP RLE decoder expands a tiny file into unbounded memory

CVSS3: 7.5
debian
29 дней назад

Pillow is a Python imaging library. From 4.1.0 until 13.0.0, Pillow's ...

EPSS

Процентиль: 44%
0.00503
Низкий

8.7 High

CVSS4

Дефекты

CWE-409