GIMP TIF File Parsing Vulnerability Allows Remote Code Execution
A stack-based buffer overflow in GIMP's TIF file parsing component, ZDI-26-456, allows remote attackers to execute arbitrary code 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, cataloged as ZDI-26-456, resides within the software's TIF (Tagged Image File Format) file parsing capabilities.
This vulnerability stems from an improper validation of user-supplied data length before it is copied into a buffer on the stack. When processing a specially crafted TIF file, this oversight can lead to a stack-based buffer overflow. Successful exploitation requires an attacker to trick a user into opening this malicious file, or potentially visiting a webpage that displays such a file.
Successful exploitation of this vulnerability grants attackers the ability to execute arbitrary code within the context of the current GIMP process. This could lead to a full system compromise, depending on the privileges of the user running GIMP. The vulnerability has been assigned a CVSS score of 7.8, indicating a high severity level.
While user interaction is a prerequisite for exploitation, the nature of image editing software means users frequently open files from various sources, increasing the potential attack surface. The Zero Day Initiative (ZDI), which disclosed the vulnerability, noted that the issue was reported to the vendor on April 17, 2026, and a coordinated public release of the advisory occurred on July 29, 2026.
Developers have already released a patch to address this vulnerability. Users are strongly advised to update their GIMP installations to the latest version to mitigate the risk. The fix can be found in the GIMP GitLab repository, specifically in a commit dated prior to the public advisory.
This vulnerability highlights the ongoing challenges in securing complex software that handles diverse file formats. Image manipulation tools, in particular, are often targets due to their broad user base and the frequent need to process external files. The prompt patching by the GIMP development team is a positive sign, but users must remain vigilant.
This discovery adds to a growing list of vulnerabilities found in widely used software, underscoring the importance of regular security audits and timely updates. The remote code execution potential, even with user interaction, makes this a significant finding for GIMP users worldwide.
This new advisory, ZDI-26-455, details a heap-based buffer overflow in GIMP's TIF file parsing, distinct from the previously reported stack-based overflow (ZDI-26-456). While both vulnerabilities allow for remote code execution with user interaction, this heap-based flaw specifically arises from improper validation of user-supplied data length before copying it to a buffer. GIMP has released a fix, accessible via a GitLab commit, addressing this specific heap overflow.