# CVE-2026-59205: Pillow: Controlled heap out-of-bounds write in \`ImageCmsTransform.apply()\` via output mode mismatch

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 12.3.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-14 · Modified: 2026-07-14
- Aliases: GHSA-9hw9-ch79-4vh6, BIT-pillow-2026-59205, PYSEC-2026-3453, UBUNTU-CVE-2026-59205, DEBIAN-CVE-2026-59205, CGA-298h-p8g7-55xw, CGA-2wgw-hp26-22jv, CGA-3qmr-75pf-qppq, CGA-536c-8wr8-4vm8, CGA-58jp-whr9-5fwv, CGA-5pf4-j7gh-xjj2, CGA-698p-r235-v829, CGA-7746-277r-xrwg, CGA-7fq2-rpx8-4vx5, CGA-ccgg-h67p-94x6, CGA-ccjp-rxhw-cf62, CGA-g46f-9493-hwww, CGA-jgmc-24q2-qc92, CGA-rq2q-5hhq-c597, CGA-vx93-336q-2v2m, CGA-3q69-36w6-686j, CGA-4wm4-vhg9-vqm8, CGA-7c5v-54rh-6pv2, CGA-7m55-48g8-76ff, CGA-8g62-hh6x-x8vc, CGA-8m5r-jwjc-xhv8, CGA-8m86-2jmr-x2xp, CGA-fmwh-cccf-fwhv, CGA-fx69-ghvg-m7xq, CGA-m8gw-c6rq-h37x, CGA-mcf7-95pj-cqj9, CGA-px6h-3rvc-p6v2, CGA-rvhx-vxf7-93cf, CGA-v377-5m2h-cj3r, CGA-v5cx-j45h-qxg5, CGA-w77j-7xgg-mr6f
- Record: https://cvemate.com/vulnerability/CVE-2026-59205 · JSON: https://cvemate.com/vulnerability/CVE-2026-59205/json

## Description

```text
Pillow is a Python imaging library. Prior to 12.3.0, Pillow's ImageCms.ImageCmsTransform.apply(im, imOut) API can trigger controlled native heap corruption when the caller supplies an output image whose mode does not match the transform's declared output mode. This issue is fixed in version 12.3.0.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.385%, percentile 34.75%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 26)

- chainguard label-studio (Chainguard): \< 1.23.0-r11
- chainguard lmcache-cuda-12.8 (Chainguard): \< 0.5.3-r0
- chainguard mlflow (Chainguard): \< 3.14.0-r2 \| \< 3.16.0-r0
- chainguard open-webui (Chainguard): \< 0.10.2-r1 \| \< 0.11.0-r0 \| All versions (No fix recorded)
- chainguard openstack-horizon-2025.2 (Chainguard): \< 25.5.2\_git20260617-r4
- chainguard openstack-horizon-2025.2-fips (Chainguard): \< 25.5.2\_git20260617-r5
- chainguard openstack-horizon-2026.1 (Chainguard): \< 25.7.3\_git20260630-r2
- chainguard openstack-horizon-2026.1-fips (Chainguard): \< 25.7.3\_git20260630-r2
- chainguard superset-6.0 (Chainguard): \< 6.0.0-r13
- chainguard superset-6.1 (Chainguard): \< 6.1.0-r6
- chainguard superset-6.1-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard superset-fips-6.1 (Chainguard): \< 6.1.0-r5
- chainguard tensorflow-gpu-jupyter (Chainguard): \< 2.21.0-r7
- chainguard text-generation-inference (Chainguard): \< 3.3.7-r20
- chainguard tritonserver-backend-vllm-cuda-13.0 (Chainguard): \< 25.11-r11
- wolfi mlflow (Wolfi): \< 3.14.0-r2 \| \< 3.16.0-r0
- wolfi open-webui (Wolfi): \< 0.10.2-r1 \| \< 0.11.0-r0 \| All versions (No fix recorded)
- wolfi superset-6.0 (Wolfi): \< 6.0.0-r13
- wolfi superset-6.1 (Wolfi): \< 6.1.0-r6
- wolfi superset-6.1-iamguarded-compat (Wolfi): All versions (No fix recorded)

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-9hw9-ch79-4vh6>
- <https://github.com/python-pillow/Pillow/pull/9715>
- <https://github.com/python-pillow/Pillow/commit/a9ffc42bedf4fc0a7ef8d6486e7f9e81e3397721>
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59205>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-3453.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://ubuntu.com/security/CVE-2026-59205>
- <https://www.cve.org/CVERecord?id=CVE-2026-59205>
- <https://security-tracker.debian.org/tracker/CVE-2026-59205>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59205.json>
- <https://ubuntu.com/security/notices/USN-8999-1>

---

Data as of 2026-12-05T03:52:36.324Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
