{"id":"CVE-2026-59205","published":"2026-07-14T15:48:39Z","modified":"2026-07-14T17:31:36Z","title":"Pillow: Controlled heap out-of-bounds write in `ImageCmsTransform.apply()` via output mode mismatch","vendor":"python-pillow","product":"Pillow","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00385,"percentile":0.33482,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-9hw9-ch79-4vh6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/9715","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/a9ffc42bedf4fc0a7ef8d6486e7f9e81e3397721","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/12.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":6.7},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 12.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-14T17:30:37.376489Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<12.3.0"],"patched":["12.3.0"],"from":["GHSA-9hw9-ch79-4vh6","PYSEC-2026-3453"],"provenance":"source"}],"summary":{"text":"The flaw is a controlled heap out-of-bounds write in the ImageCmsTransform.apply() API of Pillow, the Python imaging library, which occurs when the caller supplies an output image whose mode does not match the transform's declared output mode. An attacker can trigger this native heap corruption over the network with no privileges or user interaction, requiring only that the application pass such a mismatched output image to ImageCmsTransform.apply(), and the issue is fixed in Pillow 12.3.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:12Z"},"euvd":{"id":"EUVD-2026-43746","exploited":false,"provenance":"source"}}