CVE-2026-55379: Pillow Missing Decompression Bomb Check

Bypassing Pillow's decompression bomb check when parsing dimensions can allow attackers to cause Denial of Service (DoS) via excessive memory allocation. Always call `Image._decompression_bomb_check((width, height))` before allocating image bitmaps internally or accumulating font metrics.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-55379-pillow-missing-decompression-bomb-check --engine opengrep

Description

Bypassing Pillow's decompression bomb check when parsing dimensions can allow attackers to cause Denial of Service (DoS) via excessive memory allocation. Always call `Image._decompression_bomb_check((width, height))` before allocating image bitmaps internally or accumulating font metrics.