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-27803.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GIMP | GIMP | 3.0.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gegl | 1:0.4.62-3.1 | — |
| Debian 13 | gegl | 1:0.4.62-2+deb13u1 | DSA-6018-1 |
| Debian 12 | gegl | 1:0.4.42-2+deb12u1 | DSA-6018-1 |
| Debian 11 | gegl | 1:0.4.26-2+deb11u1 | DLA-4341-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | gegl | No fix yet | — |
| Ubuntu 26.04 LTS | gegl | No fix yet | — |
| Ubuntu 25.10 | gegl | No fix yet | — |
| Ubuntu 24.04 LTS | gegl | No fix yet | — |
| Ubuntu 22.04 LTS | gegl | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | gegl | No fix yet | — |
| Ubuntu Pro 18.04 LTS | gegl | No fix yet | — |
| Ubuntu Pro 16.04 LTS | gegl | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | gimp +1 | 2:3.0.4-1.el9_7.1 | RHSA-2025:21968 |
| RHEL 8 | gimp +3 | 2:2.8.22-26.module+el8.10.0+23719+f0b80de8.3 | RHSA-2025:22417 |
| RHEL 8 | pygobject2 +3 | 2.28.7-5.module+el8.10.0+22676+becd68d6 | RHSA-2025:22417 |
| RHEL 8 | pygtk2 +3 | 2.24.0-25.module+el8.9.0+21228+8e80d31d | RHSA-2025:22417 |
| RHEL 8 | python2-cairo +2 | 1.16.3-7.module+el8.10.0+22676+becd68d6 | RHSA-2025:22417 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | gimp +1 | 2:3.0.4-1.el9_7.1 | ALSA-2025:21968 |
| AlmaLinux 8 | gimp +3 | 2:2.8.22-26.module_el8.10.0+4070+64105a56.3 | ALSA-2025:22417 |
| AlmaLinux 8 | pygobject2 +3 | 2.28.7-5.module_el8.10.0+3952+571e801c | ALSA-2025:22417 |
| AlmaLinux 8 | pygtk2 +3 | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2025:22417 |
| AlmaLinux 8 | python2-cairo +1 | 1.16.3-7.module_el8.10.0+3952+571e801c | ALSA-2025:22417 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | gimp | 2:3.0.4-1.el9_7.1 | RLSA-2025:21968 |
| Rocky Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+1927+52edb5a0 | RLSA-2025:22417 |
| Rocky Linux 8 | pygobject2 | 2.28.7-5.module+el8.10.0+1927+52edb5a0 | RLSA-2025:22417 |
| Rocky Linux 8 | pygtk2 | 2.24.0-25.module+el8.9.0+1723+9bc93544 | RLSA-2025:22417 |
| Rocky Linux 8 | python2-pycairo | 1.16.3-7.module+el8.10.0+1927+52edb5a0 | RLSA-2025:22417 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | gegl | 0.3.34-150000.3.6.1 | SUSE-SU-2025:4335-1, SUSE-SU-2025:4333-1 |
| SLES 15 SP6 | gegl | 0.3.34-150000.3.6.1 | SUSE-SU-2025:4335-1, SUSE-SU-2025:4333-1 |
| SLES 12 SP5 | gegl | 0.2.0-15.9.1 | SUSE-SU-2025:4382-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gegl | 0.4.64-3.1 | openSUSE-SU-2025:15793-1 |
| openSUSE Leap 15.6 | gegl | 0.4.46-150600.4.3.1 | SUSE-SU-2025:4335-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | gegl +1 | 0.2.0-19.amzn2.1.1 | ALAS2-2025-3030 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | gimp +1 | 2:3.0.4-1.el9_7.1 | ELSA-2025-21968 |
| Oracle Linux 8 | gimp +3 | 2:2.8.22-26.module+el8.10.0+90712+2a2d9b57.3 | ELSA-2025-22417 |
| Oracle Linux 8 | pygobject2 +3 | 2.28.7-5.module+el8.10.0+90497+ae78887f | ELSA-2025-22417 |
| Oracle Linux 8 | pygtk2 +3 | 2.24.0-25.module+el8.9.0+90151+46a7e4b5 | ELSA-2025-22417 |
| Oracle Linux 8 | python2-cairo +1 | 1.16.3-7.module+el8.10.0+90497+ae78887f | ELSA-2025-22417 |
Advisories 16
- WID-SEC-2025-2129 GIMP: Mehrere Schwachstellen ermöglichen Codeausführung BSI CERT-Bund (WID) · Nov 5, 2026
- ALSA-2025:21968 Important: gimp security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:22417 Important: gimp:2.8 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2025:22417 Red Hat Security Advisory: gimp:2.8 security update Red Hat Security Advisories (RHSA) · Jul 12, 2026
- RHSA-2025:21968 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Jul 12, 2026
- openSUSE-SU-2025:15793-1 gegl-0.4.64-3.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4382-1 Security update for gegl SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:4333-1 Security update for gegl SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:4335-1 Security update for gegl SUSE / openSUSE Security Updates · Feb 4, 2026
- RLSA-2025:22417 Important: gimp:2.8 security update Rocky Linux Security Advisories · Dec 2, 2025
- ELSA-2025-22417 Important: gimp:2.8 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Dec 1, 2025
- RLSA-2025:21968 Important: gimp security update Rocky Linux Security Advisories · Nov 25, 2025
- ELSA-2025-21968 Important: gimp security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Nov 25, 2025
- DLA-4341-1 gegl - security update Debian Security (DSA / DLA) · Oct 22, 2025
- ALAS2-2025-3030 Important: gegl security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 14, 2025
- DSA-6018-1 gegl - security update Debian Security (DSA / DLA) · Oct 3, 2025
References
- ZDI-25-910
- vendor-provided URL vendor-advisory