CVE-2026-2049
gimp: gegl: GIMP: Remote Code Execution via HDR File Parsing Heap-based Buffer Overflow
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 11, 2026
Updated · June 30, 2026
Description
A flaw was found in GIMP. This heap-based buffer overflow vulnerability, located in the HDR file parsing component, allows a remote attacker to execute arbitrary code. User interaction is required for exploitation, as the target must open a malicious HDR file. The flaw occurs due to a lack of proper validation of user-supplied data length before it is copied to a heap-based buffer.
Statement
This is an Important vulnerability in GIMP, as a heap-based buffer overflow in the HDR file parsing component can lead to remote code execution. While exploitation requires user interaction, specifically opening a malicious HDR file, successful attacks could allow an attacker to execute arbitrary code within the context of the affected user. This risk is primarily present on desktop systems where GIMP is installed and used to process untrusted image files.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, users should avoid opening HDR files from untrusted or suspicious sources. If GIMP is not required, consider removing the gimp package to eliminate the attack surface. This can be achieved with sudo dnf remove gimp. Be aware that removing GIMP may impact other dependent graphical applications.
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE-131 · Incorrect Calculation of Buffer Size