CVE-2026-59199

HIGH

Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow

Title source: cna
STIX 2.1

Description

Pillow is a Python imaging library. Prior to 12.3.0, Pillow public image coordinate APIs can trigger a native heap out-of-bounds write when given coordinates near the signed 32-bit integer limits in Image.paste(), Image.crop(), or Image.alpha_composite(). This issue is fixed in version 12.3.0.

Scores

CVSS v3 7.5
EPSS 0.0039
EPSS Percentile 31.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-190 CWE-787
Status published
Products (3)
pypi/Pillow 0 - 12.3.0PyPI
python/pillow < 12.3.0
python-pillow/Pillow < 12.3.0
Published Jul 14, 2026
Tracked Since Jul 14, 2026