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.
References
| Link | Resource |
|---|---|
| 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 |
Configurations
History
24 Jul 2026, 21:10
| Type | Values Removed | Values Added |
|---|---|---|
| Summary |
|
12 May 2026, 17:57
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 5.5 |
| First Time |
Python
Python pillow |
|
| CPE | cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* | |
| References | () https://github.com/python-pillow/Pillow/releases/tag/12.2.0 - Product, Release Notes | |
| References | () https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2 - Vendor Advisory |
09 May 2026, 06:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-05-09 06:16
Updated : 2026-07-24 21:10
NVD link : CVE-2026-42309
Mitre link : CVE-2026-42309
CVE.ORG link : CVE-2026-42309
JSON object : View
Products Affected
python
- pillow
CWE
CWE-122
Heap-based Buffer Overflow
