Quick answers
- Is CVE-2026-59205 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-59205 being exploited in the wild.
- How severe is CVE-2026-59205?
- High severity, with a CVSS score of 7.5, published 14 July 2026.
- Which products and versions are affected?
- pillow (PyPI) < 12.3.0, ECOSYSTEM:introduced=0,fixed=12.3.0.
- Is there a fix for CVE-2026-59205?
- Yes. pillow (PyPI): upgrade to 12.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-59205 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-59205?
- Check whether you run pillow (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- pillow (PyPI): upgrade to 12.3.0 or later
pip install "pillow>=12.3.0"
Technical details
A heap out-of-bounds write exists in Pillow's ImageCms extension due to insufficient validation of image modes in the `ImageCmsTransform.apply()` method. When a caller provides an `imOut` image with a mode (e.g., 'L', 1 byte per pixel) that is smaller than the transform's expected output mode (e.g., 'RGBA', 4 bytes per pixel), the underlying LittleCMS `cmsDoTransform` function writes more data than the destination buffer can hold. This occurs because the C wrapper `pyCMSdoTransform` in `src/_imagingcms.c` only verifies image dimensions but not pixel depth. An attacker who can control the transform parameters or the output image object can achieve controlled heap corruption, as source pixels influence the bytes written out of bounds. The issue is fixed in version 12.3.0 by adding mode validation in both the Python API and the C extension.
Affected products
- python-pillow Pillow < 12.3.0
Identifiers
- CVE-2026-59205
- GHSA-9hw9-ch79-4vh6
- PYSEC-2026-3453
Timeline
- 2026-07-07: disclosed: Reported to python-pillow/Pillow
- 2026-07-14: advisory: NVD published CVE-2026-59205
- 2026-07-20: patched: GitHub Advisory published and version 12.3.0 released