Description
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.
Severity (CVSS)
| Base score | 7.5 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-787 — CWE-787: Out-of-bounds Write
Affected products
| Vendor | Product | Versions |
|---|---|---|
| python-pillow | Pillow | < 12.3.0 |
References
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-9hw9-ch79-4vh6 (x_refsource_CONFIRM)
- https://github.com/python-pillow/Pillow/pull/9715 (x_refsource_MISC)
- https://github.com/python-pillow/Pillow/commit/a9ffc42bedf4fc0a7ef8d6486e7f9e81e3397721 (x_refsource_MISC)
- https://github.com/python-pillow/Pillow/releases/tag/12.3.0 (x_refsource_MISC)
Generated from the official CVE List on 15 Jul 2026 07:06 UTC.