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

GIMP Can Be Compromised by Visiting a Malicious Website or Opening a Bad File

CVE-2026-4152
Summary

If a user opens a malicious file or visits a malicious website, an attacker can potentially take control of their GIMP installation. This is a serious concern, especially for users who work with image files. To stay safe, make sure to only open files from trusted sources and avoid visiting suspicious websites.

Original title
GIMP JP2 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 JP2 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 JP2 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-28863.
nvd CVSS3.0 7.8
Vulnerability type
CWE-122 Heap-based Buffer Overflow
Published: 11 Apr 2026 · Updated: 11 Apr 2026 · First seen: 11 Apr 2026