CVE-2026-54060
Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
Reported by github_m · Published July 6, 2026
pillow is fixed in 12.3.0 (PyPI)
Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font to trigger excessive allocation during conversion or saving. 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 |
|---|---|---|
| pillow | PyPI | 12.3.0 |
| superset-6.0 | Wolfi | 6.0.0-r13 |
| python-pillow-doc | Amazon Linux | 2.0.0-23.gitd1c6db8.amzn2.0.19 |
| py3-pillow | Alpine | 12.3.0-r0 |
| python3-pillow-devel | errata.rockylinux.org | 5.1.1-22.el8 |
| python3-pillow | errata.rockylinux.org | 5.1.1-22.el8 |
| python-pillow | errata.rockylinux.org | 5.1.1-22.el8 |
| python3-pillow-tk | errata.rockylinux.org | 5.1.1-22.el8 |
| python3-pillow-doc | errata.rockylinux.org | 5.1.1-22.el8 |
| python-pillow-debugsource | errata.rockylinux.org | 5.1.1-22.el8 |
| python3-pillow-devel | Amazon Linux | 9.4.0-2.amzn2023.0.9 |
| python3-pillow-debuginfo | errata.rockylinux.org | 5.1.1-22.el8 |
19 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| python-pillow | Pillow | < 12.3.0 |
| wolfi | superset-6.0 | 0 |
| amazon:2 | python-pillow-doc | 0 |
| alpine | py3-pillow | 0 |
| PyPI | Pillow | 0 |
| amazon:2023 | python3-pillow-devel | 0 |
| wolfi | open-webui | 0 |
| chainguard | openstack-horizon-2025.2 | 0 |
| chainguard | openstack-horizon-2026.1 | 0 |
| chainguard | tritonserver-backend-vllm-cuda-13.0 | 0 |
| wolfi | superset-6.1 | 0 |
| chainguard | open-webui | 0 |
| chainguard | openstack-horizon-2026.1-fips | 0 |
| amazon:2023 | python3-pillow | 0 |
| chainguard | label-studio | 0 |
| amazon:2 | python-pillow-devel | 0 |
| chainguard | superset-6.1 | 0 |
| chainguard | lmcache-cuda-12.8 | 0 |
| wolfi | mlflow | 0, 0 |
| chainguard | openstack-horizon-2025.2-fips | 0 |
…and 10 more
Timeline
- Jul 6, 2026 CVE Published
- Jul 7, 2026 EPSS Score (30 in total, the first dated here)
- Jul 7, 2026 Coalition ESS Score
- Jul 14, 2026 Distribution Patch (17 in total, the first dated here)
- Jul 14, 2026 Security Advisory (19 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-54060
vulnetix vdb fixes CVE-2026-54060
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-54060/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-5x94-69rx-g8h2 x_refsource_CONFIRM
- https://github.com/python-pillow/Pillow/commit/0a263e6264aa5399988d9acd3bbfbca2ca3ec77d x_refsource_MISC
- https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-54060 advisory
- https://github.com/advisories/GHSA-5x94-69rx-g8h2 advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2254.yaml advisory