CVE-2026-58380 json
Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()
published 4mo ago modified 6d ago also EUVD-2026-41875
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 25%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Red Hat Red Hat Enterprise Linux 8 8100020260824165450.4c9c024f
- Red Hat Red Hat Enterprise Linux 9 2:3.0.4-4.el9_8.7
- Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 2:2.99.8-4.el9_2.7
- Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions 2:2.99.8-4.el9_4.19
- Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support 2:2.99.8-4.el9_6.20
- gimp Debian 13 3.0.4-3+deb13u10
- gimp Debian 14 3.2.4-1
debian advisories DEBIAN-CVE-2026-58380
- gimp RHEL 8 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8
- pygtk2 RHEL 8 2.24.0-25.module+el8.9.0+21228+8e80d31d
- gimp-libs RHEL 8 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8
- pygobject2 RHEL 8 2.28.7-5.module+el8.10.0+22676+becd68d6
- python2-cairo RHEL 8 1.16.3-7.module+el8.10.0+22676+becd68d6
- pygtk2-codegen RHEL 8 2.24.0-25.module+el8.9.0+21228+8e80d31d
- python2-pycairo RHEL 8 1.16.3-7.module+el8.10.0+22676+becd68d6
- gimp-devel-tools RHEL 8 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8
red hat advisories RHSA-2026:80509RHSA-2026:73768RHSA-2026:62507RHSA-2026:40751
- gimp SLE Workstation Extension 15 SP7, SLE Module for Package Hub 15 SP7 2.10.30-150400.3.58.1
suse advisories SUSE-SU-2026:3399-1
- gimp openSUSE Leap 16.0 3.0.8-bp160.5.1
opensuse advisories openSUSE-SU-2026:21359-1
- gimp AlmaLinux 8 2:2.8.22-26.module_el8.10.0+4267+35168c80.8
- pygtk2 AlmaLinux 8 2.24.0-25.module_el8.9.0+3725+d1441900
- gimp-libs AlmaLinux 8 2:2.8.22-26.module_el8.10.0+4267+35168c80.8
- pygobject2 AlmaLinux 8 2.28.7-5.module_el8.10.0+4267+35168c80
- python2-cairo AlmaLinux 8 1.16.3-7.module_el8.10.0+4267+35168c80
- pygtk2-codegen AlmaLinux 8 2.24.0-25.module_el8.9.0+3725+d1441900
- gimp-devel-tools AlmaLinux 8 2:2.8.22-26.module_el8.10.0+4267+35168c80.8
- pygobject2-codegen AlmaLinux 8 2.28.7-5.module_el8.10.0+4267+35168c80
almalinux advisories ALSA-2026:62507ALSA-2026:40751
- gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+1927+52edb5a0
- gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+40181+ad0e3a65.6
- gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+40134+eab491b1.5
- gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+1998+a08ccc48.2
- gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+40033+6fd27379.3
- gimp Rocky Linux 8 2:2.8.22-26.module+el8.10.0+40075+a21479b4.4
- pygtk2 Rocky Linux 8 2.24.0-25.module+el8.9.0+1723+9bc93544
- pygobject2 Rocky Linux 8 2.28.7-5.module+el8.10.0+1927+52edb5a0
rocky linux advisories RLSA-2026:62507
Is CVE-2026-58380 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-58380 updated cvss 7.3
gimp: gimp: Stack buffer overflow in pnmscanner_gettoken()
-
Red Hat Enterprise Linux 6 gimp, gimp-libs, gimp-devel-tools, gimp-help-browseraffected: workaround, no fix planned “None — requires opening a crafted PNM file.”
-
Red Hat Enterprise Linux 7 gimp, gimp-libs, gimp-devel-toolsaffected: workaround, no fix available “None — requires opening a crafted PNM file.”
-
Red Hat Enterprise Linux AppStream (v. 8) pygtk2 2.24.0-25.module+el8.9.0+21228+8e80d31d, gimp 2.8.22-26.module+el8.10.0+24752+9e6a86ef.8, pygobject2 2.28.7-5.module+el8.10.0+22676+becd68d6, gimp-libs 2.8.22-26.module+el8.10.0+24752+9e6a86ef.8, python2-cairo 1.16.3-7.module+el8.10.0+22676+becd68d6, pygtk2-codegen 2.24.0-25.module+el8.9.0+21228+8e80d31d, +3 morefixed: vendor fix “None — requires opening a crafted PNM file.” RHSA-2026:62507
-
Red Hat Enterprise Linux AppStream (v. 9) gimp 3.0.4-4.el9_8.7, gimp-libs 3.0.4-4.el9_8.7fixed: vendor fix “None — requires opening a crafted PNM file.” RHSA-2026:40751
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) gimp 2.99.8-4.el9_2.7, gimp-libs 2.99.8-4.el9_2.7fixed: vendor fix “None — requires opening a crafted PNM file.” RHSA-2026:93589
-
Red Hat Enterprise Linux AppStream E4S (v.9.4) gimp 2.99.8-4.el9_4.19, gimp-libs 2.99.8-4.el9_4.19fixed: vendor fix “None — requires opening a crafted PNM file.” RHSA-2026:80509
-
Red Hat Enterprise Linux AppStream EUS (v.9.6) gimp 2.99.8-4.el9_6.20, gimp-libs 2.99.8-4.el9_6.20fixed: vendor fix “None — requires opening a crafted PNM file.” RHSA-2026:73768
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 4mo ago
Exploit prediction
0.32% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- gitlab.gnome.org https://gitlab.gnome.org/GNOME/gimp/-/issues/16206 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected products
- 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
Classification
- Weakness
-
- CWE-193 Off-by-one Error
References
-
gitlab.gnome.org
/GNOME/gimp/-/commit/83699817
broken-link
-
gitlab.gnome.org
/GNOME/gimp/-/issues/16206
exploit, issue-tracking, vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:40751
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:62507
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:73768
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:80509
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:93589
vendor-advisory
-
access.redhat.com
/security/cve/CVE-2026-58380
vdb-entry, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2496135
issue-tracking, third-party-advisory
Sources
- CVE List CVE-2026-58380
- NVD CVE-2026-58380
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.