CVE-2026-58380
Fixed in a distro release EPSS <1%CVSS 7.3
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.
Products: Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions, Red Hat Enterprise Linux 9.6 Extended Update Support, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | gimp | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 |
| AlmaLinux 8 | gimp-devel | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 |
| AlmaLinux 8 | gimp-devel-tools | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 |
| AlmaLinux 8 | gimp-libs | 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 |
| AlmaLinux 8 | pygobject2 | 2.28.7-5.module_el8.10.0+4267+35168c80 |
| AlmaLinux 8 | pygobject2-codegen | 2.28.7-5.module_el8.10.0+4267+35168c80 |
| AlmaLinux 8 | pygobject2-devel | 2.28.7-5.module_el8.10.0+4267+35168c80 |
| AlmaLinux 8 | pygobject2-doc | 2.28.7-5.module_el8.10.0+4267+35168c80 |
| AlmaLinux 8 | pygtk2 | 2.24.0-25.module_el8.9.0+3725+d1441900 |
| AlmaLinux 8 | pygtk2-codegen | 2.24.0-25.module_el8.9.0+3725+d1441900 |
| AlmaLinux 8 | pygtk2-devel | 2.24.0-25.module_el8.9.0+3725+d1441900 |
| AlmaLinux 8 | pygtk2-doc | 2.24.0-25.module_el8.9.0+3725+d1441900 |
| AlmaLinux 8 | python2-cairo | 1.16.3-7.module_el8.10.0+4267+35168c80 |
| AlmaLinux 8 | python2-cairo-devel | 1.16.3-7.module_el8.10.0+4267+35168c80 |
| AlmaLinux 9 | gimp | 2:3.0.4-4.el9_8.7 |
| AlmaLinux 9 | gimp-libs | 2:3.0.4-4.el9_8.7 |
| Debian 12 | gimp | no fix |
| Debian 13 | gimp | 3.0.4-3+deb13u10 |
| Debian 14 | gimp | 3.2.4-1 |
| Red Hat Enterprise Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 |
| Red Hat Enterprise Linux 8 | gimp-debuginfo | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 |
| Red Hat Enterprise Linux 8 | gimp-debugsource | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 |
| Red Hat Enterprise Linux 8 | gimp-devel | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 |
| Red Hat Enterprise Linux 8 | gimp-devel-tools | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 |
| Red Hat Enterprise Linux 8 | gimp-devel-tools-debuginfo | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 |
| Red Hat Enterprise Linux 8 | gimp-libs | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 |
| Red Hat Enterprise Linux 8 | gimp-libs-debuginfo | 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 |
| Red Hat Enterprise Linux 8 | pygobject2 | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | pygobject2-codegen | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | pygobject2-debuginfo | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | pygobject2-debugsource | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | pygobject2-devel | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | pygobject2-doc | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | pygtk2 | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
| Red Hat Enterprise Linux 8 | pygtk2-codegen | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
| Red Hat Enterprise Linux 8 | pygtk2-debuginfo | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
| Red Hat Enterprise Linux 8 | pygtk2-debugsource | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
| Red Hat Enterprise Linux 8 | pygtk2-devel | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
| Red Hat Enterprise Linux 8 | pygtk2-doc | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
| Red Hat Enterprise Linux 8 | python2-cairo | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | python2-cairo-debuginfo | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | python2-cairo-devel | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | python2-pycairo | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 8 | python2-pycairo-debugsource | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
| Red Hat Enterprise Linux 9 | gimp | 2:3.0.4-4.el9_8.7 |
| Red Hat Enterprise Linux 9 | gimp-debuginfo | 2:3.0.4-4.el9_8.7 |
| Red Hat Enterprise Linux 9 | gimp-debugsource | 2:3.0.4-4.el9_8.7 |
| Red Hat Enterprise Linux 9 | gimp-devel-tools-debuginfo | 2:3.0.4-4.el9_8.7 |
| Red Hat Enterprise Linux 9 | gimp-libs | 2:3.0.4-4.el9_8.7 |
| Red Hat Enterprise Linux 9 | gimp-libs-debuginfo | 2:3.0.4-4.el9_8.7 |
| Red Hat rhel e4s 9.4 | gimp | 2:2.99.8-4.el9_4.19 |
| Red Hat rhel e4s 9.4 | gimp-debuginfo | 2:2.99.8-4.el9_4.19 |
| Red Hat rhel e4s 9.4 | gimp-debugsource | 2:2.99.8-4.el9_4.19 |
| Red Hat rhel e4s 9.4 | gimp-devel-tools-debuginfo | 2:2.99.8-4.el9_4.19 |
| Red Hat rhel e4s 9.4 | gimp-libs | 2:2.99.8-4.el9_4.19 |
| Red Hat rhel e4s 9.4 | gimp-libs-debuginfo | 2:2.99.8-4.el9_4.19 |
| Red Hat rhel eus 9.6 | gimp | 2:2.99.8-4.el9_6.20 |
| Red Hat rhel eus 9.6 | gimp-debuginfo | 2:2.99.8-4.el9_6.20 |
| Red Hat rhel eus 9.6 | gimp-debugsource | 2:2.99.8-4.el9_6.20 |
| Red Hat rhel eus 9.6 | gimp-devel-tools-debuginfo | 2:2.99.8-4.el9_6.20 |
| Red Hat rhel eus 9.6 | gimp-libs | 2:2.99.8-4.el9_6.20 |
| Red Hat rhel eus 9.6 | gimp-libs-debuginfo | 2:2.99.8-4.el9_6.20 |
| Rocky Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+1927+52edb5a0 |
| Rocky Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+40181+ad0e3a65.6 |
| Rocky Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+40134+eab491b1.5 |
| Rocky Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+1998+a08ccc48.2 |
| Rocky Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+40033+6fd27379.3 |
| Rocky Linux 8 | gimp | 2:2.8.22-26.module+el8.10.0+40075+a21479b4.4 |
| Rocky Linux 8 | pygobject2 | 0:2.28.7-5.module+el8.10.0+1927+52edb5a0 |
| Rocky Linux 8 | pygtk2 | 0:2.24.0-25.module+el8.9.0+1723+9bc93544 |
| Rocky Linux 8 | python2-pycairo | 0:1.16.3-7.module+el8.10.0+1927+52edb5a0 |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | gimp | 2.10.30-150400.3.58.1 |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | gimp | 2.10.30-150400.3.58.1 |
| Ubuntu 25.10 | gimp | no fix |
| Ubuntu 26.04 LTS | gimp | no fix |
| Ubuntu Pro 16.04 LTS | gimp | no fix |
| Ubuntu Pro 18.04 LTS | gimp | no fix |
| Ubuntu Pro 20.04 LTS | gimp | no fix |
| Ubuntu Pro 22.04 LTS | gimp | no fix |
| Ubuntu Pro 24.04 LTS | gimp | no fix |
| openSUSE Leap 16.0 | gimp | 3.0.8-bp160.5.1 |