
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-40916 is a stack buffer overflow vulnerability in GIMP's TIM image loader affecting the 4BPP (4 bits-per-pixel) decoding path, allowing a local user to cause a Denial of Service (DoS) by opening a specially crafted TIM image file. The vulnerability was disclosed on April 15, 2026, and affects GIMP as packaged across Red Hat Enterprise Linux versions 6, 7, 8, and 9. The specific GIMP versions affected are not precisely enumerated in available advisories. It carries a CVSS v3.1 base score of 5.5 (Medium) per Red Hat, or 5.0 (Moderate) per the GitHub Advisory Database (Red Hat Advisory, GitHub Advisory, Red Hat Bugzilla).
The root cause is an out-of-bounds write (CWE-787) in GIMP's TIM image loader. In the 4BPP decoding path, a variable-length array row[] is allocated with width bytes, but the decode loop writes 2 * width bytes into it — unconditionally overflowing the buffer by exactly width bytes with data derived from the image file. This means any crafted 4BPP TIM file can reliably trigger the overflow. Exploitation requires local access and user interaction (i.e., a user must open the malicious file), and no privileges are required (Red Hat Bugzilla, GitHub Advisory).
Successful exploitation causes GIMP to crash, resulting in a Denial of Service for the affected user session. The impact is limited to availability — there is no confidentiality or integrity impact identified, and the scope is unchanged (confined to the GIMP process). Because the attack vector is local and requires user interaction, the blast radius is limited to individual workstations where a user opens a malicious TIM file (Red Hat Advisory, GitHub Advisory).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2026-40916. The EPSS score is approximately 0.005% (0th percentile), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been identified (GitHub Advisory, Red Hat Advisory).
2 * width bytes into a width-byte stack buffer, overflowing by exactly width bytes with attacker-controlled data from the file..tim file on the victim's system..tim files in user download directories, shared folders, or email attachments./var/log/messages, ~/.xsession-errors, or systemd journal showing GIMP segmentation faults).No patched GIMP version has been publicly identified in available advisories as of the disclosure date; the Red Hat Bugzilla entry shows the bug status as "NEW" with no fixed version listed. Users should avoid opening TIM image files from untrusted sources in GIMP. Organizations running RHEL should monitor Red Hat's security advisories for errata updates addressing this CVE. As a general workaround, restrict access to GIMP on systems where untrusted image files may be processed (Red Hat Advisory, Red Hat Bugzilla).
Coverage of CVE-2026-40916 has been limited, consistent with its medium severity and local-only attack vector. A Heise article from around the time of disclosure referenced GIMP vulnerabilities involving image file handling, though it focused on a separate GIF-related issue. No notable researcher commentary or significant community discussion specific to this CVE has been identified in available sources.
Fix availability across major Linux distributions and their releases.
bionic (esm-apps)
gimp
devel
gimp
focal (esm-apps)
gimp
jammy
gimp
jammy (esm-apps)
gimp
noble
gimp
noble (esm-apps)
gimp
resolute
gimp
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."