Description
A flaw was found in GIMP's PNM file format parser. When parsing a specially crafted PNM file, the pnmscanner_gettoken() function writes a null terminator one byte past the end of a stack-allocated buffer due to an off-by-one error in the loop boundary check. This could lead to memory corruption, potentially resulting in denial of service or arbitrary code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | — | — |
| Red Hat | Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | — | — |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | — | — |
| Red Hat | Red Hat Enterprise Linux 6 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
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 | gimp | 3.2.4-1 | — |
| Debian 13 | gimp | 3.0.4-3+deb13u10 | — |
| Debian 12 | gimp | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | gimp | No fix yet | — |
| Ubuntu 25.10 | gimp | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | gimp | No fix yet | — |
| Ubuntu Pro 22.04 LTS | gimp | No fix yet | — |
| Ubuntu Pro 20.04 LTS | gimp | No fix yet | — |
| Ubuntu Pro 18.04 LTS | gimp | No fix yet | — |
| Ubuntu Pro 16.04 LTS | gimp | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | gimp +1 | 2:3.0.4-4.el9_8.7 | RHSA-2026:40751 |
| RHEL 8 | gimp +3 | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 | RHSA-2026:62507 |
| RHEL 8 | pygobject2 +3 | 2.28.7-5.module+el8.10.0+22676+becd68d6 | RHSA-2026:62507 |
| RHEL 8 | pygtk2 +3 | 2.24.0-25.module+el8.9.0+21228+8e80d31d | RHSA-2026:62507 |
| RHEL 8 | python2-cairo +2 | 1.16.3-7.module+el8.10.0+22676+becd68d6 | RHSA-2026:62507 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9.6 EUS | gimp +1 | 2:2.99.8-4.el9_6.20 | RHSA-2026:73768 |
| RHEL 9.4 E4S | gimp +1 | 2:2.99.8-4.el9_4.19 | RHSA-2026:80509 |
| RHEL 9.2 E4S | gimp +1 | 2:2.99.8-4.el9_2.7 | RHSA-2026:93589 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | gimp +1 | 2:3.0.4-4.el9_8.7 | ALSA-2026:40751 |
| AlmaLinux 8 | gimp +3 | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 | ALSA-2026:62507 |
| AlmaLinux 8 | pygobject2 +3 | 2.28.7-5.module_el8.10.0+4267+35168c80 | ALSA-2026:62507 |
| AlmaLinux 8 | pygtk2 +3 | 2.24.0-25.module_el8.9.0+3725+d1441900 | ALSA-2026:62507 |
| AlmaLinux 8 | python2-cairo +1 | 1.16.3-7.module_el8.10.0+4267+35168c80 | ALSA-2026:62507 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+1927+52edb5a0 | RLSA-2026:62507 |
| Rocky Linux 8 | pygobject2 | 2.28.7-5.module+el8.10.0+1927+52edb5a0 | RLSA-2026:62507 |
| Rocky Linux 8 | pygtk2 | 2.24.0-25.module+el8.9.0+1723+9bc93544 | RLSA-2026:62507 |
| Rocky Linux 8 | python2-pycairo | 1.16.3-7.module+el8.10.0+1927+52edb5a0 | RLSA-2026:62507 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | gimp | 2.10.30-150400.3.58.1 | SUSE-SU-2026:3399-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | gimp | 3.0.8-bp160.5.1 | openSUSE-SU-2026:21359-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | gimp +1 | 2:3.0.4-4.el9_8.7 | ELSA-2026-40751 |
Advisories 12
- RHSA-2026:93589 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- WID-SEC-2026-2219 GIMP: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 5, 2026
- ALSA-2026:40751 Important: gimp security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:62507 Important: gimp:2.8 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:80509 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2026:73768 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Oct 12, 2026
- RHSA-2026:62507 Red Hat Security Advisory: gimp:2.8 security update Red Hat Security Advisories (RHSA) · Oct 12, 2026
- RHSA-2026:40751 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Oct 12, 2026
- RLSA-2026:62507 Important: gimp:2.8 security update Rocky Linux Security Advisories · Sep 2, 2026
- SUSE-SU-2026:3399-1 Security update for gimp SUSE / openSUSE Security Updates · Jul 30, 2026
- openSUSE-SU-2026:21359-1 Security update for gimp SUSE / openSUSE Security Updates · Jul 17, 2026
- ELSA-2026-40751 Important: gimp security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jul 16, 2026
References
- RHSA-2026:40751 vendor-advisory
- RHSA-2026:62507 vendor-advisory
- RHSA-2026:73768 vendor-advisory
- RHSA-2026:80509 vendor-advisory
- RHSA-2026:93589 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-58380 vdb-entry
- RHBZ#2496135 issue-tracking
- https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206