CVE-2026-58380
JSON

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 packageVersionsReported by
gimp:2.8Not specified
Not affected: from 8100020260824165450.4c9c024f before *
CVE List
gimpNot 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 gimpbefore 3.2.4NVD
redhat enterprise_linux7.0, 8.0, 9.0NVD

All scores

redhat7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-193

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

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

Sources

SourceRecordLicence
CVE ListCVE-2026-58380 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-58380 changed 2026-11-17Public domain