What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: python-pillow Pillow 12.3.0; Pypi Pillow 12.3.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-59199 or the next vulnerability affects your stack