# CVE-2026-42309: Pillow: Heap buffer overflow with nested list coordinates

- Priority: **Routine**
- Reason: Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-09 · Modified: 2026-05-11
- Aliases: GHSA-5xmw-vc9v-4wf2, BIT-pillow-2026-42309, PYSEC-2026-2251, UBUNTU-CVE-2026-42309, DEBIAN-CVE-2026-42309, CGA-2p76-wv95-7r3q, CGA-5xp8-qcwh-5jvw, CGA-cm47-g8cm-35wj, CGA-gmxx-j572-45w6, CGA-jrpq-mhq6-qcjj, CGA-wxx9-q4q5-8cm7
- Record: https://cvemate.com/vulnerability/CVE-2026-42309 · JSON: https://cvemate.com/vulnerability/CVE-2026-42309/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.133%, percentile 2.983%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard kubeflow-pipelines-visualization-server (Chainguard): \< 2.16.1-r0
- chainguard mlflow (Chainguard): \< 3.16.0-r0
- chainguard open-webui (Chainguard): \< 0.11.0-r0
- chainguard superset-6.0 (Chainguard): \< 6.0.0-r10
- wolfi kubeflow-pipelines-visualization-server (Wolfi): \< 2.16.1-r0
- wolfi mlflow (Wolfi): \< 3.16.0-r0
- wolfi open-webui (Wolfi): \< 0.11.0-r0
- wolfi superset-6.0 (Wolfi): \< 6.0.0-r10
- debian pillow (Debian): \< 12.2.0-1
- ubuntu pillow (Ubuntu): \< 11.3.0-1ubuntu1.3 \| \< 12.1.1-2ubuntu1.2
- PyPI pillow (PyPI): ≥ 11.2.1, \< 12.2.0
- python-pillow pillow: ≥ 11.2.1, \< 12.2.0
- python pillow: ≥ 11.2.1, \< 12.2.0

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2>
- <https://github.com/python-pillow/Pillow/releases/tag/12.2.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42309>
- <https://github.com/python-pillow/Pillow>
- <https://ubuntu.com/security/CVE-2026-42309>
- <https://www.cve.org/CVERecord?id=CVE-2026-42309>
- <https://ubuntu.com/security/notices/USN-8399-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-42309>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42309.json>
- <https://github.com/designcomputer/mysql_mcp_server/commit/a96549f4a4d65443fd6e9c7f2324fba9a5c80a82>
- <https://github.com/python-pillow/Pillow/commit/cf6de8ca9b23e714aa5310e1c791eda66fc0b670>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2251.yaml>

---

Data as of 2026-12-05T05:18:19.133Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
