GHSA-5xmw-vc9v-4wf2 · Severity: medium · Ecosystem: pip — Pillow has a heap buffer overflow with nested list coordinates
Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in version 12.2.0.
Conclusion & alert: CVE-2026-42309 is rated Low Risk (21.4/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.01%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-09 | — | 0.01% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.1 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 5.5 | 3.1 | MEDIUM |
|
1.8 | 3.6 | [email protected] |
GHSA-5xmw-vc9v-4wf2 · Severity: medium · Ecosystem: pip — Pillow has a heap buffer overflow with nested list coordinates
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2026-42309 unimportant priority: Debian including 1 source packages (pillow), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2026-42309 |
suse
|
high | — | https://www.suse.com/security/cve/CVE-2026-42309/ |
ubuntu
|
medium | CVE-2026-42309 medium priority: Ubuntu including 2 source packages (pillow, pillow-python2), 15 status rows across 9 suites (bionic, focal, jammy, noble, questing, resolute, trusty, upstream, xenial): not-affected 7, DNE 4, released 3, needs-triage 1. | https://ubuntu.com/security/CVE-2026-42309 |
| URL | Tags |
|---|---|
| https://github.com/python-pillow/Pillow/releases/tag/12.2.0 | Product Release Notes |
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2 | Vendor Advisory |