CVE-2026-54060

HIGH

Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 7.5
EPSS 0.0036
EPSS Percentile 28.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-789
Status published
Products (2)
python/pillow < 12.3.0
python-pillow/Pillow < 12.3.0
Published Jul 06, 2026
Tracked Since Jul 07, 2026