{"id":"CVE-2026-59199","published":"2026-07-14T15:42:15Z","modified":"2026-07-15T14:53:39Z","title":"Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","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.33481,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-6r8x-57c9-28j4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/9703","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/ceefc348eb3c3844c7f9796ef2cc3a7dd5fbba7b","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-15T14:52:14.113156Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":["<12.3.0"],"patched":["12.3.0"],"from":["GHSA-6r8x-57c9-28j4","PYSEC-2026-3451"],"provenance":"source"}],"summary":{"text":"The flaw is a heap out-of-bounds write in the Pillow Python imaging library, reachable through its public image coordinate APIs, specifically Image.paste(), Image.crop() and Image.alpha_composite(). An attacker who can supply coordinates close to the signed 32-bit integer limits to these functions can trigger the write, requiring no authentication, no user interaction, and only that the vulnerable code path be reachable by the attacker's input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:12Z"},"euvd":{"id":"EUVD-2026-43739","exploited":false,"provenance":"source"}}