CVE-2026-40192: CWE-770: Allocation of Resources Without Limits or Throttling in python-pillow Pillow
Pillow versions 10. 3. 0 through 12. 1. 1 contain a vulnerability where the amount of GZIP-compressed data read when decoding FITS images is not limited. This can lead to unbounded memory consumption if a specially crafted FITS file is processed, causing denial of service through out-of-memory crashes or severe performance degradation. Users unable to upgrade immediately should avoid opening FITS images as a temporary mitigation.
AI Analysis
Technical Summary
The python-pillow library versions from 10.3.0 up to but not including 12.2.0 do not impose limits on the amount of GZIP-compressed data read during decoding of FITS image files. This lack of throttling allows an attacker to craft a FITS file that triggers excessive memory allocation, resulting in a denial of service condition due to resource exhaustion. The vulnerability is identified as CWE-770 (Allocation of Resources Without Limits or Throttling) and CWE-400 (Uncontrolled Resource Consumption).
Potential Impact
An attacker can cause a denial of service by supplying a malicious FITS image that consumes unbounded memory during decompression, potentially crashing the application or severely degrading its performance. This affects any system using the vulnerable Pillow versions to process FITS images.
Mitigation Recommendations
No official patch or remediation level is currently confirmed. Users should upgrade to Pillow version 12.2.0 or later once available. Until then, users are advised to avoid opening FITS image files to prevent exploitation of this vulnerability.
CVE-2026-40192: CWE-770: Allocation of Resources Without Limits or Throttling in python-pillow Pillow
Description
Pillow versions 10. 3. 0 through 12. 1. 1 contain a vulnerability where the amount of GZIP-compressed data read when decoding FITS images is not limited. This can lead to unbounded memory consumption if a specially crafted FITS file is processed, causing denial of service through out-of-memory crashes or severe performance degradation. Users unable to upgrade immediately should avoid opening FITS images as a temporary mitigation.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The python-pillow library versions from 10.3.0 up to but not including 12.2.0 do not impose limits on the amount of GZIP-compressed data read during decoding of FITS image files. This lack of throttling allows an attacker to craft a FITS file that triggers excessive memory allocation, resulting in a denial of service condition due to resource exhaustion. The vulnerability is identified as CWE-770 (Allocation of Resources Without Limits or Throttling) and CWE-400 (Uncontrolled Resource Consumption).
Potential Impact
An attacker can cause a denial of service by supplying a malicious FITS image that consumes unbounded memory during decompression, potentially crashing the application or severely degrading its performance. This affects any system using the vulnerable Pillow versions to process FITS images.
Mitigation Recommendations
No official patch or remediation level is currently confirmed. Users should upgrade to Pillow version 12.2.0 or later once available. Until then, users are advised to avoid opening FITS image files to prevent exploitation of this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T20:59:17.620Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e01c6582d89c981fa691af
Added to database: 4/15/2026, 11:16:53 PM
Last enriched: 4/15/2026, 11:31:48 PM
Last updated: 4/16/2026, 12:17:30 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.