Vulnerability · Published Oct 29, 2025 · Assigned by zdi
CVE-2025-10921GIMP HDR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability
High 7.8
In plain English
A high-severity heap buffer overflow in GIMP from GIMP. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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-27803.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | gimp | 2:2.8.22-26.module_el8.10.0+4070+64105a56.3 | ALSA-2025:22417 |
| AlmaLinux:9 | gimp | 2:3.0.4-1.el9_7.1 | ALSA-2025:21968 |
| AlmaLinux:8 | gimp-devel | 2:2.8.22-26.module_el8.10.0+4070+64105a56.3 | ALSA-2025:22417 |
| AlmaLinux:8 | gimp-devel-tools | 2:2.8.22-26.module_el8.10.0+4070+64105a56.3 | ALSA-2025:22417 |
| AlmaLinux:8 | gimp-libs | 2:2.8.22-26.module_el8.10.0+4070+64105a56.3 | ALSA-2025:22417 |
| AlmaLinux:9 | gimp-libs | 2:3.0.4-1.el9_7.1 | ALSA-2025:21968 |
| AlmaLinux:8 | pygobject2 | 2.28.7-5.module_el8.10.0+3952+571e801c | ALSA-2025:22417 |
| AlmaLinux:8 | pygobject2-codegen | 2.28.7-5.module_el8.10.0+3952+571e801c | ALSA-2025:22417 |
| AlmaLinux:8 | pygobject2-devel | 2.28.7-5.module_el8.10.0+3952+571e801c | ALSA-2025:22417 |
| AlmaLinux:8 | pygobject2-doc | 2.28.7-5.module_el8.10.0+3952+571e801c | ALSA-2025:22417 |
| AlmaLinux:8 | pygtk2 | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2025:22417 |
| AlmaLinux:8 | pygtk2-codegen | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2025:22417 |
| AlmaLinux:8 | pygtk2-devel | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2025:22417 |
| AlmaLinux:8 | pygtk2-doc | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2025:22417 |
| AlmaLinux:8 | python2-cairo | 1.16.3-7.module_el8.10.0+3952+571e801c | ALSA-2025:22417 |
| AlmaLinux:8 | python2-cairo-devel | 1.16.3-7.module_el8.10.0+3952+571e801c | ALSA-2025:22417 |
| Debian:12 | gegl | 1:0.4.42-2+deb12u1 | DEBIAN-CVE-2025-10921 |
| Debian:12 | gegl | 1:0.4.42-2+deb12u1 | DSA-6018-1 |
| Debian:13 | gegl | 1:0.4.62-2+deb13u1 | DSA-6018-1 |
| Debian:13 | gegl | 1:0.4.62-2+deb13u1 | DEBIAN-CVE-2025-10921 |
| Debian:14 | gegl | 1:0.4.62-3.1 | DEBIAN-CVE-2025-10921 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+1998+a08ccc48.2 | RLSA-2025:22417 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+1927+52edb5a0 | RLSA-2025:22417 |
| Rocky Linux:8 | gimp | 2:2.8.22-26.module+el8.10.0+40033+6fd27379.3 | RLSA-2025:22417 |
| Rocky Linux:9 | gimp | 2:3.0.4-1.el9_7.1 | RLSA-2025:21968 |
| Rocky Linux:8 | pygobject2 | 0:2.28.7-5.module+el8.10.0+1927+52edb5a0 | RLSA-2025:22417 |
| Rocky Linux:8 | pygtk2 | 0:2.24.0-25.module+el8.9.0+1723+9bc93544 | RLSA-2025:22417 |
| Rocky Linux:8 | python2-pycairo | 0:1.16.3-7.module+el8.10.0+1927+52edb5a0 | RLSA-2025:22417 |
| Ubuntu:22.04:LTS | gegl | no fix listed | UBUNTU-CVE-2025-10921 |
| Ubuntu:24.04:LTS | gegl | no fix listed | UBUNTU-CVE-2025-10921 |
| Ubuntu:25.10 | gegl | no fix listed | UBUNTU-CVE-2025-10921 |
| Ubuntu:26.04:LTS | gegl | no fix listed | UBUNTU-CVE-2025-10921 |
| Ubuntu:26.10 | gegl | no fix listed | UBUNTU-CVE-2025-10921 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- ZDI-25-910 x_research-advisory
- vendor-provided URL vendor-advisory
- https://lists.debian.org/debian-lts-announce/2025/10/msg00021.html