Skip to main content
← All vulnerabilities
CVE-2026-54060PYSEC-2026-2254BIT-PILLOW-2026-54060GHSA-5X94-69RX-G8H2

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 12.3.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • python-pillow Pillow

    fixed in 12.3.0

  • pillowPyPI

    fixed in 12.3.0

References 3

GitHub · python-pillow/Pillow