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.
Related Vulnerabilities
Other vulnerabilities affecting the same packages
High Risk
2 months ago
Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
5.1.0 - 12.2.0 PYSEC-2026-3495
5.1.0 - 12.2.0 PYSEC-2026-3495
Unknown
2 months ago
Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
8.2.0 - 12.2.0 PYSEC-2026-3496
8.2.0 - 12.2.0 PYSEC-2026-3496
Unknown
2 months ago
Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
1.0 - 3.1.0.rc1 and 3.1.0rc1 - 12.2.0 PYSEC-2026-3493
1.0 - 3.1.0.rc1 and 3.1.0rc1 - 12.2.0 PYSEC-2026-3493
Medium Risk
2 months ago
Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
5.2.0 - 12.2.0 PYSEC-2026-3494
5.2.0 - 12.2.0 PYSEC-2026-3494
High Risk
3 months ago
Pillow: Controlled heap out-of-bounds write in Pillow `ImageCmsTransform.apply()` via output mode mismatch
1.0 - 3.1.0.rc1 and 3.1.0rc1 - 12.2.0 GHSA-9hw9-ch79-4vh6
1.0 - 3.1.0.rc1 and 3.1.0rc1 - 12.2.0 GHSA-9hw9-ch79-4vh6
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