---
cve: "CVE-2026-42309"
severity: "MEDIUM"
cvss: 5.1
epss: "13%"
vendor: "python-pillow"
kev: false
exploited: false
published: "2026-05-09 06:16:10"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-17T06:41:03+02:00"
---

# CVE-2026-42309

> 5.1 MEDIUM · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |

## Patch verfügbar (OSV)

- 3c41c095064200a02672d89cc5ff629eaf4b0d4f (Commit)

## Referenzen

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2>
- <https://github.com/python-pillow/Pillow/releases/tag/12.2.0>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-42309) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
