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, GHSA-5xmw-vc9v-4wf2
The record has no summary.
Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, 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 issue has been patched in version 12.2.0.
Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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: PyPA Advisory Database · CC BY 4.0