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 was introduced in Pillow 11.2.1.
{
"github_reviewed": true,
"cwe_ids": [
"CWE-122"
],
"severity": "MODERATE",
"github_reviewed_at": "2026-05-04T20:18:27Z",
"nvd_published_at": "2026-05-09T06:16:10Z"
}