Vulnerability · Published Jul 6, 2026 · Assigned by GitHub_M
CVE-2026-54060Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
High 7.5
In plain English
A high-severity security flaw in Pillow from python-pillow. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | python3-pillow | 5.1.1-22.el8_10 | ALSA-2026:39127 |
| AlmaLinux:8 | python3-pillow-devel | 5.1.1-22.el8_10 | ALSA-2026:39127 |
| AlmaLinux:8 | python3-pillow-doc | 5.1.1-22.el8_10 | ALSA-2026:39127 |
| AlmaLinux:8 | python3-pillow-tk | 5.1.1-22.el8_10 | ALSA-2026:39127 |
| Debian:12 | pillow | no fix listed | DEBIAN-CVE-2026-54060 |
| Debian:13 | pillow | no fix listed | DEBIAN-CVE-2026-54060 |
| Debian:14 | pillow | 12.3.0-1 | DEBIAN-CVE-2026-54060 |
| PyPI | pillow | 12.3.0 | GHSA-5x94-69rx-g8h2 |
| PyPI | pillow | 12.3.0 | PYSEC-2026-2254 |
| Rocky Linux:8 | python-pillow | 0:5.1.1-22.el8_10 | RLSA-2026:39127 |
| Ubuntu:22.04:LTS | pillow | 9.0.1-1ubuntu0.6 | USN-8999-1 |
| Ubuntu:22.04:LTS | pillow | 9.0.1-1ubuntu0.6 | UBUNTU-CVE-2026-54060 |
| Ubuntu:24.04:LTS | pillow | 10.2.0-1ubuntu1.4 | USN-8999-1 |
| Ubuntu:24.04:LTS | pillow | 10.2.0-1ubuntu1.4 | UBUNTU-CVE-2026-54060 |
| Ubuntu:26.04:LTS | pillow | 12.1.1-2ubuntu1.4 | USN-8999-1 |
| Ubuntu:26.04:LTS | pillow | 12.1.1-2ubuntu1.4 | UBUNTU-CVE-2026-54060 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| python-pillow | Pillow | < 12.3.0 |
Weakness: CWE-789 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H