CVE-2026-54059CWE-789

Pillow: PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading

High · published July 6, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
34.1
In the wild
Unconfirmed
What it is

Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allowing crafted PCF font data to cause excessive memory allocation. This issue is fixed in version 12.3.0.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00410 · 34.1th percentile
Weakness
CWE-789 · Memory Allocation with Excessive Size Value
Published
2026-07-06T18:46Z
EPSS history
Timeline
  • 06 JUL 18:46Z
    Pillow: PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading
    cvelistv5