Launch Week Day 1: Announcing Security Design Review
MEDIUM 5.5 PyPI

Pillow has a heap buffer overflow with nested list coordinates

GHSA-5xmw-vc9v-4wf2 · BIT-pillow-2026-42309 · CVE-2026-42309

Published · Modified

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes