CVEfocus › CVE database › CVE-2026-40192

CVE-2026-40192Pillow is vulnerable to a FITS GZIP decompression bomb

CVSS 8.7 HighEPSS 0.9% (higher than 58% of CVEs)Published 2026-04-15Updated 2026-09-10Assigner: GitHub_M

Pillow is a Python imaging library. Versions 10.3.0 through 12.1.1 did not limit the amount of GZIP-compressed data read when decoding a FITS image, making them vulnerable to decompression bomb attacks. A specially crafted FITS file could cause unbounded memory consumption, leading to denial of service (OOM crash or severe performance degradation). If users are unable to immediately upgrade, they should only open specific image formats, excluding FITS, as a workaround.

CWE-400CWE-409CWE-770

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
11Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04pillowFixed12.1.1-2ubuntu1.1UBUNTU-CVE-2026-40192
Ubuntu 25.10pillowFixed11.3.0-1ubuntu1.2UBUNTU-CVE-2026-40192
Ubuntu 24.04pillowNot affected
vulnerable_code_not_present
Ubuntu 22.04pillowNot affected
vulnerable_code_not_present
Debian 14pillowFixed12.2.0-1DEBIAN-CVE-2026-40192
Debian 13pillowFixed11.1.0-5+deb13u2DEBIAN-CVE-2026-40192
Red Hat Enterprise Linux 8python-pillowWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-pillowWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-pillow-develWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-pillow-docWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-pillow-tkWill not fix
Will not fix
Red Hat Enterprise Linux 7python-pillowWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-pillow-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-pillow-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-pillow-qtWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-pillow-saneWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-pillow-tkWill not fix
Out of support scope
PyPI librarypillowFixed12.2.0GHSA-whj4-6x5x-4v2j

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.