CVE-2026-40192

Pillow is vulnerable to a FITS GZIP decompression bomb

HIGH
7.5
CVSS Score
Published: April 15, 2026 at 10:53 PM UTC
Updated: October 26, 2026 at 09:10 PM UTC
8 products affected across 3 vendorsPillowPillowEnterprise Linux

Using Pillow by python-pillow?

Get instant alerts when new vulnerabilities affect Pillow - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

10.3.0 ≤ v < 12.2.0
Affected range stops below 12.2.0, so it looks safe — our inference, not a vendor statement
10.3.0 ≤ v < 12.2.0
Affected range stops below 12.2.0, so it looks safe — our inference, not a vendor statement
All versions
Vendor states this is fixed in 1778244531 (unaffected)
Vendor states this is fixed in 1778244546 (unaffected)
Vendor states this is fixed in 1778244559 (unaffected)
Vendor states this is fixed in 1778274666 (unaffected)
Vendor states this is fixed in 1787151840 (unaffected)
Vendor states this is fixed in 1787772157 (unaffected)
Vendor states this is fixed in 1787860580 (unaffected)
Vendor states this is fixed in 1787884873 (unaffected)
Vendor states this is fixed in 0:12.2.0-1.el8ap (unaffected)
Vendor states this is fixed in 0:12.2.0-1.el9ap (unaffected)
Vendor states this is fixed in 1779761061 (unaffected)
Vendor states this is fixed in 1780102732 (unaffected)
Vendor states this is fixed in 2 (unaffected)
Vendor states this is fixed in 7 (unknown)
All versions
Vendor states this is fixed in 1778262893 (unaffected)
Vendor states this is fixed in 1778263054 (unaffected)
Vendor states this is fixed in 1778263128 (unaffected)
Vendor states this is fixed in 1778677667 (unaffected)
Vendor states this is fixed in 1778677692 (unaffected)
Vendor states this is fixed in 1778677701 (unaffected)
Vendor states this is fixed in 1778677716 (unaffected)
Vendor states this is fixed in 1778677717 (unaffected)
Vendor states this is fixed in 1778677718 (unaffected)
Vendor states this is fixed in 1778677722 (unaffected)
Vendor states this is fixed in 1778677734 (unaffected)
Vendor states this is fixed in 1778677741 (unaffected)
Vendor states this is fixed in 1778677767 (unaffected)
Vendor states this is fixed in 1778677779 (unaffected)
Vendor states this is fixed in 1778782933 (unaffected)
Vendor states this is fixed in 1779123334 (unaffected)
Vendor states this is fixed in 1780388133 (unaffected)
Vendor states this is fixed in 1782471606 (unaffected)
Vendor states this is fixed in 1782472374 (unaffected)
Vendor states this is fixed in 1786711151 (unaffected)
All versions

References (35)

x_refsource_CONFIRMMitigationPatchVendor Advisory
Source: cverecord
https://github.com/python-pillow/Pillow/security/advisories/GHSA-whj4-6x5x-4v2j
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/python-pillow/Pillow/pull/9521
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/errata/RHSA-2026:16008
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/errata/RHSA-2026:16009
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/errata/RHSA-2026:16030
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/errata/RHSA-2026:16174

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHredhat-SADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-770CWE-400CWE-409

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card