CVE-2026-59197
Reported by github_m · Published July 14, 2026
Pillow is a Python imaging library. Prior to 12.3.0, Pillow's public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.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 |
|---|---|---|
| python-pillow-debugsource | errata.rockylinux.org | 5.1.1-23.el8 |
| tritonserver-backend-vllm-cuda-13.0 | Chainguard | 25.11-r11 |
| openstack-horizon-2025.2 | Chainguard | 25.5.2_git20260617-r4 |
| python-pillow-devel | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.20 |
| python-pillow-doc | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.20 |
| superset-6.1 | Wolfi | 6.1.0-r6 |
| superset-6.1 | Chainguard | 6.1.0-r6 |
| pillow | python | 12.3.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| python-pillow | Pillow | < 12.3.0 |
| chainguard | tritonserver-backend-vllm-cuda-13.0 | 0 |
| chainguard | openstack-horizon-2025.2 | 0 |
| python-pillow | Pillow | |
| amazon:2 | python-pillow-devel | 0 |
| amazon:2 | python-pillow-doc | 0 |
| wolfi | superset-6.1 | 0 |
| chainguard | superset-6.1 | 0 |
| python-pillow | Pillow | 0 |
| chainguard | open-webui | 0 |
| chainguard | mlflow | 0, 0 |
| chainguard | superset-fips-6.1 | 0 |
| wolfi | open-webui | 0 |
| amazon:2023 | python3-pillow-devel | 0 |
| chainguard | lmcache-cuda-12.8 | 0 |
| chainguard | label-studio | 0 |
| wolfi | superset-6.0 | 0 |
| chainguard | openstack-horizon-2026.1-fips | 0 |
| chainguard | superset-6.0 | 0 |
| wolfi | mlflow | 0, 0 |
…and 10 more
Timeline
- Jul 14, 2026 CVE Published
- Jul 15, 2026 Coalition ESS Score
- Jul 31, 2026 Distribution Patch (13 in total, the first dated here)
- Jul 31, 2026 Security Advisory (13 in total, the first dated here)
- Aug 7, 2026 EPSS Score (30 in total, the first dated here)
- Aug 12, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-59197
vulnetix vdb fixes CVE-2026-59197
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-59197/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-xj96-63gp-2gmr x_refsource_CONFIRM
- https://github.com/python-pillow/Pillow/pull/9695 x_refsource_MISC
- https://github.com/python-pillow/Pillow/commit/cce3bdb867c77a3420261ed1bfdb6b0787ec8fc1 x_refsource_MISC
- https://github.com/python-pillow/Pillow/releases/tag/12.3.0 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-59197 advisory
- https://github.com/advisories/GHSA-xj96-63gp-2gmr advisory