pillow
Affected
- introduced
11.2.1, fixed12.2.0(ecosystem)
Fixed versions
12.2.0
Fix
- Fixed version
12.2.0pip install --upgrade pillow==12.2.0
Advisory
Also known as: BIT-pillow-2026-42309, CVE-2026-42309, PYSEC-2026-2251
Pillow has a heap buffer overflow with nested list coordinates
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.
Medium Basis: The source's own band: MODERATE
11.2.1, fixed 12.2.0 (ecosystem)12.2.0
12.2.0pip install --upgrade pillow==12.2.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0