CVE-2026-58380
7.3high
Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()
- Severity
- 7.3high CVSS:3.1 by redhat
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gimp:2.8 | Not specified Not affected: from 8100020260824165450.4c9c024f before * | CVE List |
| gimp | Not specified 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 * | CVE List |
| gimp gimp | before 3.2.4 | NVD |
| redhat enterprise_linux | 7.0, 8.0, 9.0 | NVD |
All scores
| redhat | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
| 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 | |
| https://gitlab.gnome.org/GNOME/gimp/-/issues/16206 | exploit, issue-tracking, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58380 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2026-58380 changed 2026-11-17 | Public domain |