Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| python-pillow | Pillow | >= 11.2.1, < 12.2.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pillow | 12.2.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | pillow | 12.1.1-2ubuntu1.2 | USN-8399-1 |
| Ubuntu 25.10 | pillow | 11.3.0-1ubuntu1.3 | USN-8399-1 |
| Ubuntu 24.04 LTS | pillow | 10.2.0-1ubuntu1.2 | USN-8399-1 |
| Ubuntu 22.04 LTS | pillow | 9.0.1-1ubuntu0.4 | USN-8399-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | kubeflow-pipelines-visualization-server | 2.16.1-r0 | — |
| Wolfi rolling | open-webui | 0.11.0-r0 | — |
| Wolfi rolling | superset-6.0 | 6.0.0-r10 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | >= 11.2.1, < 12.2.0 | 12.2.0 | GHSA-5xmw-vc9v-4wf2 |
Advisories 2
- WID-SEC-2026-2455 Oracle Solaris Drittanbieterkomponenten: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- USN-8399-1 pillow vulnerabilities Ubuntu Security Notices (USN) · Jun 8, 2026