Vulnerability · Published Jul 6, 2026 · Assigned by GitHub_M

CVE-2026-55380Pillow GdImageFile decompression bomb protection bypass

High 7.5

In plain English

A high-severity security flaw in Pillow from python-pillow. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 55.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8python3-pillow5.1.1-22.el8_10ALSA-2026:39127
AlmaLinux:8python3-pillow-devel5.1.1-22.el8_10ALSA-2026:39127
AlmaLinux:8python3-pillow-doc5.1.1-22.el8_10ALSA-2026:39127
AlmaLinux:8python3-pillow-tk5.1.1-22.el8_10ALSA-2026:39127
Debian:12pillowno fix listedDEBIAN-CVE-2026-55380
Debian:13pillowno fix listedDEBIAN-CVE-2026-55380
Debian:14pillow12.3.0-1DEBIAN-CVE-2026-55380
PyPIpillow12.3.0GHSA-phj9-mv4w-65pm
PyPIpillow12.3.0PYSEC-2026-2256
Rocky Linux:8python-pillow0:5.1.1-22.el8_10RLSA-2026:39127
Ubuntu:22.04:LTSpillow9.0.1-1ubuntu0.6USN-8999-1
Ubuntu:22.04:LTSpillow9.0.1-1ubuntu0.6UBUNTU-CVE-2026-55380
Ubuntu:24.04:LTSpillow10.2.0-1ubuntu1.4USN-8999-1
Ubuntu:24.04:LTSpillow10.2.0-1ubuntu1.4UBUNTU-CVE-2026-55380
Ubuntu:26.04:LTSpillow12.1.1-2ubuntu1.4USN-8999-1
Ubuntu:26.04:LTSpillow12.1.1-2ubuntu1.4UBUNTU-CVE-2026-55380

Affected products (as reported)

VendorProductVersions
python-pillow Pillow < 12.3.0

Weakness: CWE-789 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References