CVE-2026-58380
HIGHGimp: gimp: stack buffer overflow in pnmscanner_gettoken()
Title source: cnaDescription
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.
References (4)
Core 4
Core References
Vdb Entry, X_Refsource_Redhat vdb-entry
x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2026-58380
Issue Tracking, X_Refsource_Redhat issue-tracking
x_refsource_redhat
RHBZ#2496135
https://bugzilla.redhat.com/show_bug.cgi?id=2496135
Scores
CVSS v3
7.3
EPSS
0.0012
EPSS Percentile
2.4%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-193
Status
published
Products (4)
Red Hat/Red Hat Enterprise Linux 6
Red Hat/Red Hat Enterprise Linux 7
Red Hat/Red Hat Enterprise Linux 8
Red Hat/Red Hat Enterprise Linux 9
Published
Jul 06, 2026
Tracked Since
Jul 06, 2026