Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-54059

Опубликовано: 06 июл. 2026
Источник: redhat
CVSS3: 7.5

Описание

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.

A flaw was found in Pillow, a Python imaging library. A remote attacker could exploit this vulnerability by providing specially crafted PCF font data. This data, when processed, can lead to excessive memory allocation because the library does not properly check for decompression bombs. The primary consequence is a Denial of Service (DoS), which could make the affected system or application unavailable.

Отчет

A flaw was found in the Python Pillow library. The PcfFontFile._load_bitmaps() method reads glyph dimensions from the PCF METRICS section and passes them directly to Image.frombytes() without calling Image._decompression_bomb_check(). This allows crafted PCF font data to cause excessive memory allocation, leading to a denial of service condition. An attacker could exploit this by providing a specially crafted PCF font file to an application that uses Pillow's font loading functionality.

Меры по смягчению последствий

Do not load PCF fonts from untrusted sources. If PCF font loading is required, validate font file dimensions before passing them to Pillow, or upgrade to Pillow 12.3.0 or later which includes the fix for this vulnerability.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Ansible Automation Platform 2python-pillowNot affected
Red Hat Enterprise Linux 7python-pillowNot affected
Red Hat Satellite 6python3.12-pillowUnder investigation
Red Hat Satellite 6python-pillowAffected
Red Hat Satellite 6satellite-capsule:el8/python-pillowUnder investigation
Red Hat Satellite 6satellite:el8/python-pillowAffected
Red Hat Enterprise Linux 8python-pillowFixedRHSA-2026:3912714.07.2026

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-409
https://bugzilla.redhat.com/show_bug.cgi?id=2497464python-pillow: Pillow: Denial of Service via crafted PCF font data

7.5 High

CVSS3

Связанные уязвимости

CVSS3: 7.5
ubuntu
25 дней назад

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.

CVSS3: 7.5
nvd
25 дней назад

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.

CVSS3: 7.5
debian
25 дней назад

Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.p ...

CVSS3: 7.5
github
11 дней назад

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

suse-cvrf
18 дней назад

Security update for python-Pillow

7.5 High

CVSS3