GIMP HDR Parser Heap Overflow RCE via Malicious File
CVE-2026-2050 Published on June 24, 2026
GIMP HDR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability
GIMP HDR 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 HDR 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-28266.
Vulnerability Analysis
CVE-2026-2050 is exploitable with local system access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Types
Heap-based Buffer Overflow
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
Incorrect Calculation of Buffer Size
The software does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow.
Products Associated with CVE-2026-2050
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-2050 are published in these products:
Affected Versions
GIMP:- Version 3.0.6 is affected.
- Version 0:0.2.0-40.el8_10 and below * is unaffected.
- Version 0:0.4.62-1.el9_8.1 and below * is unaffected.
- Version 0:0.4.34-2.el9_2.1 and below * is unaffected.
- Version 0:0.4.34-3.el9_4.1 and below * is unaffected.
- Version 0:0.4.34-3.el9_6.1 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.