CVE-2026-42309
Pillow: Pillow: Denial of Service via specially crafted coordinate input
Overview
Description
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.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-122
Affected packages · 2
Operating systems · 16 fixes
Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-pillow +5 | affected |
| 7 (satellite-capsule:el8) | python-pillow | affected |
| 8 | python-pillow +4 | affected |
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
chainguard 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| kubeflow-pipelines-visualization-server | 2.16.1-r0 | |
| mlflow | 3.16.0-r0 | |
| superset-6-0 | 6.0.0-r10 |
debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 14 | pillow | 12.2.0-1 |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| label-studio | 1.23.1-r0 | |
| litellm-1-83 | 1.83.10-r0 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.5.1 | openSUSE-SU-2026:20831-1 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 26.04 | pillow | 12.1.1-2ubuntu1.2 |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| kubeflow-pipelines-visualization-server | 2.16.1-r0 | |
| superset-6-0 | 6.0.0-r10 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-42309
- github.com https://github.com/designcomputer/mysql_mcp_server/commit/a96549f4a4d65443fd6e9c7f2324fba9a5c80a82
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2251.yaml
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/commit/cf6de8ca9b23e714aa5310e1c791eda66fc0b670
- github.com https://github.com/python-pillow/Pillow/releases/tag/12.2.0
- github.com https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-42309
- ubuntu.com https://ubuntu.com/security/notices/USN-8399-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-42309
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.