Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2026-40192

CVE-2026-40192: FITS GZIP decompression bomb in Pillow

April 13, 2026 (updated April 27, 2026)

Pillow did not limit the amount of GZIP-compressed data read when decoding a FITS image, making it 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).

References

  • github.com/advisories/GHSA-whj4-6x5x-4v2j
  • github.com/python-pillow/Pillow/commit/3cb854e8b2bab43f40e342e665f9340d861aa628
  • github.com/python-pillow/Pillow/pull/9521
  • github.com/python-pillow/Pillow/security/advisories/GHSA-whj4-6x5x-4v2j
  • nvd.nist.gov/vuln/detail/CVE-2026-40192
  • pillow.readthedocs.io/en/stable/releasenotes/12.2.0.html

Code Behaviors & Features

Detect and mitigate CVE-2026-40192 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 10.3.0 before 12.2.0

Fixed versions

  • 12.2.0

Solution

Upgrade to version 12.2.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/Pillow/CVE-2026-40192.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:12 +0000.