CVE-2026-42311
Pillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)
Reported by github_m · Published May 9, 2026
pillow is fixed in 12.2.0 (PyPI)
Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pillow | PyPI | 12.2.0 |
| superset-6.0 | Wolfi | 6.0.0-r10 |
| python3-pillow-devel | Amazon Linux | 9.4.0-2.amzn2023.0.8 |
| kubeflow-pipelines-visualization-server | Wolfi | 2.16.1-r0 |
| python-pillow | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.18 |
| kubeflow-pipelines-visualization-server | Chainguard | 2.16.1-r0 |
| python-pillow-sane | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.18 |
| superset-6.0 | Chainguard | 6.0.0-r10 |
| python3-pillow | Amazon Linux | 9.4.0-2.amzn2023.0.8 |
| open-webui | Wolfi | 0.11.0-r0 |
| mlflow | Chainguard | 3.16.0-r0 |
| pillow | Bitnami | 12.2.0 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| python-pillow | Pillow | >= 10.3.0, < 12.2.0 |
| wolfi | superset-6.0 | 0 |
| amazon:2023 | python3-pillow-devel | 0 |
| wolfi | kubeflow-pipelines-visualization-server | 0 |
| amazon:2 | python-pillow | 0 |
| chainguard | kubeflow-pipelines-visualization-server | 0 |
| amazon:2 | python-pillow-sane | 0 |
| chainguard | superset-6.0 | 0 |
| amazon:2023 | python3-pillow | 0 |
| wolfi | open-webui | 0 |
| chainguard | mlflow | 0 |
| amazon:2 | python-pillow-tk | 0 |
| python-pillow | Pillow | 10.3.0 |
| chainguard | open-webui | 0 |
| PyPI | Pillow | 10.3.0 |
| wolfi | mlflow | 0 |
| amazon:2023 | python3-pillow-tk | 0 |
| amazon:2 | python-pillow-doc | 0 |
| amazon:2 | python-pillow-devel | 0 |
Timeline
- May 4, 2026 CVE Published
- May 9, 2026 Security Advisory (2 in total, the first dated here)
- May 18, 2026 EPSS Score (28 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
- Aug 10, 2026 CVE Updated
- Aug 12, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-42311
vulnetix vdb fixes CVE-2026-42311
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42311/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr x_refsource_CONFIRM
- https://github.com/python-pillow/Pillow/pull/9520 x_refsource_MISC
- https://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea x_refsource_MISC
- https://github.com/python-pillow/Pillow/releases/tag/12.2.0 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-42311 advisory
- https://github.com/advisories/GHSA-pwv6-vv43-88gr advisory
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc url
- https://github.com/python-pillow/Pillow url