Red Hat VEX
RHVEX-CVE-2026-40192
Pillow: Pillow: Denial of Service via decompression bomb in FITS image processing
Details
A flaw was found in Pillow, a Python imaging library. This vulnerability allows a remote attacker to trigger a denial of service (DoS) by providing a specially crafted FITS image file. The library's failure to limit the amount of GZIP-compressed data during decoding can lead to unbounded memory consumption, causing the system to crash or experience severe performance issues.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | python-pillow | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-qt | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-sane | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-tk | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python-pillow | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python3-pillow | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python3-pillow-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python3-pillow-doc | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python3-pillow-tk | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2026-40192
- https://bugzilla.redhat.com/show_bug.cgi?id=2458856
- https://www.cve.org/CVERecord?id=CVE-2026-40192
- https://nvd.nist.gov/vuln/detail/CVE-2026-40192
- https://github.com/python-pillow/Pillow/commit/3cb854e8b2bab43f40e342e665f9340d861aa628
- https://github.com/python-pillow/Pillow/pull/9521
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-whj4-6x5x-4v2j
- https://pillow.readthedocs.io/en/stable/releasenotes/12.2.0.html#prevent-fits-decompression-bomb