Resource exhaustion in Pillow - CVE-2026-40192

 

Resource exhaustion in Pillow - CVE-2026-40192

Published: April 11, 2026


Vulnerability identifier: #VU125817
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-40192
CWE-ID: CWE-400
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Alex Clark and Contributors
Affected software:
Pillow

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to uncontrolled resource consumption in the FITS image decoder when parsing a specially crafted GZIP-compressed FITS file. A remote attacker can supply a specially crafted FITS file to cause a denial of service.

The issue can result in unbounded memory consumption, leading to an out-of-memory crash or severe performance degradation.


How to mitigate CVE-2026-40192

Install security update from vendor's website.

Sources