Advisory

PYSEC-2026-2255

Also known as: BIT-pillow-2026-55379, CVE-2026-55379, GHSA-45hq-cxwh-f6vc

Summary

The record has no summary.

Details

Pillow is a Python imaging library. Prior to 12.3.0, PIL/BdfFontFile.py bdf_char() read the BBX width and height field from a BDF font file and passed attacker-controlled dimensions to Image.new() without calling Image._decompression_bomb_check(), bypassing Pillow's documented decompression bomb protection and allowing excessive memory allocation. This issue is fixed in version 12.3.0.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-06 19:17 UTC
Modified
2026-07-13 07:26 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 0, fixed 12.3.0 (ecosystem)

Fixed versions

12.3.0

Fix

  • Fixed version 12.3.0
    pip install --upgrade pillow==12.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences