CVE-2026-2050 GIMP HDR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

High 7.8 Published Updated

Remote attackers can execute arbitrary code by tricking users into opening malicious HDR files in GIMP due to a heap-based buffer overflow.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-2050?

CVE-2026-2050 is a high-severity memory corruption vulnerability in Gimp Gimp, published on 24 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-131, CWE-122

Which versions are affected by CVE-2026-2050?

It affects 1 product.

Linux distribution packages (40)
gegl AlmaLinux:8All versions0.2.0-40.el8_10
gegl04 AlmaLinux:9All versions0.4.62-1.el9_8.1
gegl04-devel AlmaLinux:9All versions0.4.62-1.el9_8.1
gegl04-devel-docs AlmaLinux:9All versions0.4.62-1.el9_8.1
gegl04-tools AlmaLinux:9All versions0.4.62-1.el9_8.1
gegl Red Hat:enterprise_linux:8::appstreamAll versions0:0.2.0-40.el8_10
gegl-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.2.0-40.el8_10
gegl-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:0.2.0-40.el8_10
gegl04 Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.62-1.el9_8.1
gegl04-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.62-1.el9_8.1
gegl04-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.62-1.el9_8.1
gegl04-devel-docs Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.62-1.el9_8.1
gegl04-tools Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.62-1.el9_8.1
gegl04-tools-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.62-1.el9_8.1
gegl04-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:0.4.62-1.el9_8.1
gegl04-debugsource Red Hat:enterprise_linux:9::crbAll versions0:0.4.62-1.el9_8.1
gegl04-devel Red Hat:enterprise_linux:9::crbAll versions0:0.4.62-1.el9_8.1
gegl04-tools-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:0.4.62-1.el9_8.1
gegl Red Hat:rhel_aus:8.4::appstreamAll versions0:0.2.0-39.el8_4.1
gegl Red Hat:rhel_aus:8.6::appstreamAll versions0:0.2.0-39.el8_6.1
gegl Red Hat:rhel_e4s:8.8::appstreamAll versions0:0.2.0-39.el8_8.1
gegl04 Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.4.34-2.el9_2.1
gegl04-debuginfo Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.4.34-2.el9_2.1
gegl04-debugsource Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.4.34-2.el9_2.1
gegl04-devel-docs Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.4.34-2.el9_2.1
gegl04-tools Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.4.34-2.el9_2.1
gegl04-tools-debuginfo Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.4.34-2.el9_2.1
gegl04 Red Hat:rhel_e4s:9.4::appstreamAll versions0:0.4.34-3.el9_4.1
gegl04-debuginfo Red Hat:rhel_e4s:9.4::appstreamAll versions0:0.4.34-3.el9_4.1
gegl04-debugsource Red Hat:rhel_e4s:9.4::appstreamAll versions0:0.4.34-3.el9_4.1
gegl04-devel-docs Red Hat:rhel_e4s:9.4::appstreamAll versions0:0.4.34-3.el9_4.1
gegl04-tools Red Hat:rhel_e4s:9.4::appstreamAll versions0:0.4.34-3.el9_4.1
gegl04-tools-debuginfo Red Hat:rhel_e4s:9.4::appstreamAll versions0:0.4.34-3.el9_4.1
gegl04 Red Hat:rhel_eus:9.6::appstreamAll versions0:0.4.34-3.el9_6.1
gegl04-debuginfo Red Hat:rhel_eus:9.6::appstreamAll versions0:0.4.34-3.el9_6.1
gegl04-debugsource Red Hat:rhel_eus:9.6::appstreamAll versions0:0.4.34-3.el9_6.1
gegl04-devel-docs Red Hat:rhel_eus:9.6::appstreamAll versions0:0.4.34-3.el9_6.1
gegl04-tools Red Hat:rhel_eus:9.6::appstreamAll versions0:0.4.34-3.el9_6.1
gegl04-tools-debuginfo Red Hat:rhel_eus:9.6::appstreamAll versions0:0.4.34-3.el9_6.1
gegl04-debuginfo Red Hat:rhel_eus:9.6::crbAll versions0:0.4.34-3.el9_6.1

Products include Gimp Gimp.

How do I fix CVE-2026-2050?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-2050 being exploited?

There is no known exploitation of CVE-2026-2050 in the wild and no public exploit code.

All Gimp Gimp vulnerabilities

Sources

Also known as ALSA-2026:38485, ALSA-2026:38497, CLSA-2026-1784816949, CLSA-2026-1786355228, DEBIAN-CVE-2026-2050, GHSA-j4fq-jj5r-8w3h and 11 more.

Is CVE-2026-2050 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free