CVE-2026-59199 Details
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.
A heap-based buffer overflow vulnerability has been identified in Pillow, a Python imaging library, in versions prior to 12.3.0. The issue arises in the public image coordinate APIs, where coordinates near the limits of signed 32-bit integers can cause a native heap out-of-bounds write. This vulnerability is present in the Image.paste(), Image.crop(), and Image.alpha_composite() methods. The flaw allows for a controlled backward heap underwrite, where attacker-controlled bytes are written before the destination row pointer, potentially leading to memory corruption.
Users should upgrade to Pillow version 12.3.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-6r8x-57c9-28j4 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/python-pillow/Pillow/commit/ceefc348eb3c3844c7f9796ef2cc3a7dd5fbba7b | [email protected] | Patch |
| https://github.com/python-pillow/Pillow/pull/9703 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/python-pillow/Pillow/releases/tag/12.3.0 | [email protected] | Release Notes |
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-6r8x-57c9-28j4 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python pillow | < 12.3.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | Initial Analysis | [email protected] |
| Jul 14, 2026 | New CVE Received | [email protected] |