Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.8

GIMP Can Be Tricked into Running Malicious Code from Images

CVE-2026-0797
Summary

If you use GIMP to view or edit images, a hacker could trick you into running malicious code by getting you to open a specially crafted image file. This could let the hacker take control of your computer. To stay safe, make sure to only open image files from trusted sources.

What to do

No fix is available yet. Check with your software vendor for updates.

Affected software
VendorProductAffected versionsFix available
gimp gimp 3.2.0 –
Original title
GIMP ICO File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User in...
Original description
GIMP ICO File Parsing Heap-based Buffer 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 ICO files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28599.
nvd CVSS3.0 7.8
Vulnerability type
CWE-122 Heap-based Buffer Overflow
CWE-787 Out-of-bounds Write
Published: 20 Feb 2026 · Updated: 12 Mar 2026 · First seen: 6 Mar 2026