CVE-2026-55380 Pillow GdImageFile decompression bomb protection bypass

High 7.5 Published Updated

Attackers can cause excessive memory allocation and denial of service by uploading crafted GD image files to applications using the Pillow library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-55380?

CVE-2026-55380 is a high-severity denial of service vulnerability in Python Pillow, published on 6 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open() read image dimensions from the GD 2.x header and stored them in self._size without calling Image._decompression_bomb_check(), allowing a crafted .gd file to trigger excessive C-heap allocation when loaded. This issue is fixed in version 12.3.0.

Weakness: CWE-789

Which versions are affected by CVE-2026-55380?

4 open source packages ship an affected version, including pillow. It affects 1 product.

PackageAffectedFixed in
pillow BitnamiAll versions12.3.0
pillow PyPIAll versions12.3.0
pillow PyPIAll versions12.3.0
pillow PyPIAll versions12.3.0

Products include Python Pillow.

How do I fix CVE-2026-55380?

Upgrade pillow to 12.3.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-55380 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55380 exists.

All Python Pillow vulnerabilities

Sources

Also known as BIT-pillow-2026-55380, DEBIAN-CVE-2026-55380, ECHO-4c8a-f431-6031, GHSA-phj9-mv4w-65pm, MINI-59g8-5jx7-v7mm, MINI-725p-7c3q-95wf and 12 more.

Is CVE-2026-55380 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free