# CVE-2026-59199: Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 46% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-07-14T15:42:15.071Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-6r8x-57c9-28j4, BIT-PILLOW-2026-59199, PYSEC-2026-3451
- Weaknesses: CWE-190, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: < 12.3.0
- pillow (PyPI): before 12.3.0
- python pillow: before 12.3.0
- pillow (Bitnami): before 12.3.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-6r8x-57c9-28j4> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/9703> (exploit, fix, issue-tracking, patch, web)
- <https://github.com/python-pillow/Pillow/commit/ceefc348eb3c3844c7f9796ef2cc3a7dd5fbba7b> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59199> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-3451.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-59199](https://www.cve.org/CVERecord?id=CVE-2026-59199), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-6r8x-57c9-28j4](https://github.com/advisories/GHSA-6r8x-57c9-28j4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59199](https://nvd.nist.gov/vuln/detail/CVE-2026-59199), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3451](https://osv.dev/vulnerability/PYSEC-2026-3451), CC-BY-4.0, modified 2026-07-15
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-59199](https://osv.dev/vulnerability/BIT-PILLOW-2026-59199), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-59199 · Whole record: https://cve.day/CVE-2026-59199.json · Rebuilt by cve.day 2026-11-25T22:59:27.913Z
