Vulnerability GHSA-5xmw-vc9v-4wf2

Medium Risk
MEDIUM RISK
CVSS Score: 5.5
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
5 months ago
May 04, 2026 at 08:18 PM UTC
Pillow has a heap buffer overflow with nested list coordinates
11.2.1 - 12.1.1
11.2.1 - 12.1.1

Summary

Pillow has a heap buffer overflow with nested list coordinates

Details

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.

Impacted packages

Timeline

Published
5 months ago
May 04, 2026 at 08:18 PM UTC
Fixed (12.2.0)
6 months ago
April 01, 2026 at 02:45 PM UTC
Last Modified
1 hour ago
October 19, 2026 at 08:00 PM UTC