CVE-2026-54060 PUBLISHED

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

Assigner: GitHub_M
Reserved: 11.06.2026 Published: 06.07.2026 Updated: 07.07.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

Product Status

Vendor python-pillow
Product Pillow
Versions
  • Version < 12.3.0 is affected

References

Problem Types

  • CWE-789: Memory Allocation with Excessive Size Value CWE