ZDI-CAN-29396: ZDI-26-459: GIMP SGI File Parsing Integer Overflow Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of SGI files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before writing to memory. An attacker can leverage this vulnerability to execute code in the context of the current process.
Other sources
This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The ZDI has assigned a CVSS rating of 7.8. The following CVEs are assigned: CVE-2026-18306.
— ZDI
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch ZDI-26-459 - Compensating control
Given user interaction is required (victim must visit a malicious page or open a malicious SGI file), restrict and monitor SGI file handling—block or quarantine untrusted SGI files and prevent users from opening untrusted SGI files from untrusted sources.
Event History
Frequently Asked Questions
What is the severity of ZDI-CAN-29396?
The severity of ZDI-CAN-29396 is rated at 7.8 on the CVSS scale.
How do I fix ZDI-CAN-29396?
To fix ZDI-CAN-29396, update GIMP to the latest version that includes the security patch.
What does ZDI-CAN-29396 exploit?
ZDI-CAN-29396 exploits an integer overflow in SGI file parsing in GIMP, allowing for remote code execution.
Is user interaction required to exploit ZDI-CAN-29396?
Yes, user interaction is required to exploit ZDI-CAN-29396 as the target must either visit a malicious page or open a malicious file.
Which software is affected by ZDI-CAN-29396?
ZDI-CAN-29396 affects GIMP installations that do not have the security update applied.