# CVE-2026-58380: Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()

- Severity: High 7.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-06T13:58:43.680Z
- Modified: 2026-11-17T20:59:23.850Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- gimp:2.8: no versions given (not affected: from 8100020260824165450.4c9c024f before *)
- gimp: no versions given (not affected: from 2:3.0.4-4.el9_8.7 before *; from 2:2.99.8-4.el9_2.7 before *; from 2:2.99.8-4.el9_4.19 before *; from 2:2.99.8-4.el9_6.20 before *)
- gimp gimp: before 3.2.4
- redhat enterprise_linux: 7.0; 8.0; 9.0

## Every score

- redhat: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://gitlab.gnome.org/GNOME/gimp/-/issues/16206> (exploit, issue-tracking, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:40751> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:62507> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:73768> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:80509> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:93589> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-58380> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2496135> (issue-tracking, third-party-advisory)
- <https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817> (broken-link)

## Sources

- CVE List: [CVE-2026-58380](https://www.cve.org/CVERecord?id=CVE-2026-58380), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-58380](https://nvd.nist.gov/vuln/detail/CVE-2026-58380), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-58380 · Whole record: https://cve.day/CVE-2026-58380.json · Rebuilt by cve.day 2026-11-25T22:59:27.228Z
