CVE-2026-42309
Fixed in a distro release EPSS <1%CVSS 5.1
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.
Products: python-pillow Pillow
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| PyPI | pillow | 12.2.0 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | kubeflow-pipelines-visualization-server | 2.16.1-r0 |
| Chainguard | mlflow | 3.16.0-r0 |
| Chainguard | open-webui | 0.11.0-r0 |
| Chainguard | superset-6.0 | 6.0.0-r10 |
| Debian 14 | pillow | 12.2.0-1 |
| Ubuntu 22.04 LTS | pillow | 9.0.1-1ubuntu0.4 |
| Ubuntu 24.04 LTS | pillow | 10.2.0-1ubuntu1.2 |
| Ubuntu 25.10 | pillow | 11.3.0-1ubuntu1.3 |
| Ubuntu 26.04 LTS | pillow | 12.1.1-2ubuntu1.2 |
| Wolfi | kubeflow-pipelines-visualization-server | 2.16.1-r0 |
| Wolfi | mlflow | 3.16.0-r0 |
| Wolfi | open-webui | 0.11.0-r0 |
| Wolfi | superset-6.0 | 6.0.0-r10 |