GIMP SGI File Parsing Vulnerability Leads to Remote Code Execution
A remote code execution vulnerability in GIMP's SGI file parsing component, identified as ZDI-26-459, allows attackers to compromise affected systems with user interaction.

The popular open-source image editor GIMP is affected by a critical vulnerability that could allow remote attackers to execute arbitrary code on a user's system. The flaw, detailed by the Zero Day Initiative (ZDI) as ZDI-26-459 and assigned CVE-2026-18306, resides within the software's handling of SGI image files.
At the heart of the vulnerability is an integer overflow that occurs during the parsing of SGI files. This overflow happens because the software fails to adequately validate user-supplied data before it is written to memory. An attacker can exploit this by crafting a malicious SGI file. When a user opens this specially crafted file within GIMP, the integer overflow can be triggered, leading to memory corruption.
Successful exploitation of this vulnerability allows an attacker to execute arbitrary code within the context of the current GIMP process. This means that any privileges the user running GIMP has on the system could potentially be leveraged by the attacker. However, the exploitation is not entirely remote and requires a degree of user interaction.
To trigger the vulnerability, a user must be tricked into opening a malicious SGI file. Alternatively, if GIMP is used in a context where it might automatically process files from a web source, visiting a compromised webpage that serves such a file could also lead to exploitation. The ZDI has assigned a CVSS score of 7.8 to this vulnerability, classifying it as high severity.
Developers behind GIMP have acknowledged the vulnerability and have released an update to address the issue. The fix involves implementing proper validation of user-supplied data during the SGI file parsing process, thereby preventing the integer overflow. Users are strongly advised to update their GIMP installations to the latest version to mitigate this risk.
The vulnerability was initially reported to the vendor on April 17, 2026, and ZDI coordinated a public release of the advisory on July 29, 2026. The advisory was updated on the same day. The credit for discovering this vulnerability has been attributed to an anonymous researcher.
This incident highlights the ongoing security challenges faced by widely used open-source software. While GIMP is a powerful and versatile tool, vulnerabilities in its file parsing components can have significant security implications, especially when user interaction is required for exploitation. Keeping software updated remains a critical defense against such threats.
The Zero Day Initiative has published details on a new remote code execution vulnerability affecting GIMP, identified as ZDI-26-458. This flaw is distinct from the previously reported SGI file parsing vulnerability (ZDI-26-459) and involves an integer overflow within GIMP's TIF file parsing component, allowing attackers to execute arbitrary code on vulnerable systems with user interaction.