Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow
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.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2026-59199US | — | — | ||
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… | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/python-pillow/Pillow/commit/ceefc348eb3c3844c7f9796ef2cc3a7dd5fbba7bFIX
- https://github.com/python-pillow/Pillow/pull/9703FIX
- https://github.com/python-pillow/Pillow/releases/tag/12.3.0ARTICLE
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-6r8x-57c9-28j4ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-59199WEB
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan