CVE-2026-58380

Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()

HIGH
7.8
CVSS Score
Published: July 6, 2026 at 01:58 PM UTC
Updated: October 12, 2026 at 03:17 AM UTC
2 products affected across 2 vendorsEnterprise LinuxGIMP

Using Red Hat Enterprise Linux 6 by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat Enterprise Linux 6 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Vendor states this is fixed in 2:2.99.8-4.el9_4.19 (unaffected)
Vendor states this is fixed in 2:2.99.8-4.el9_6.20 (unaffected)
Vendor states this is fixed in 2:3.0.4-4.el9_8.7 (unaffected)
Vendor states this is fixed in 8100020260824165450.4c9c024f (unaffected)
Vendor states this is fixed in 6 (unknown)

References (8)

VDB Entryx_refsource_REDHATThird Party Advisory
Source: cverecord
https://access.redhat.com/security/cve/CVE-2026-58380
Issue Trackingx_refsource_REDHATThird Party Advisory
Source: cverecord
https://bugzilla.redhat.com/show_bug.cgi?id=2496135
ExploitIssue TrackingVendor Advisory
Source: cverecord
https://gitlab.gnome.org/GNOME/gimp/-/issues/16206
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:40751
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:62507
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:73768
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:80509

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusUNDERGOING ANALYSIS
CWE
CWE-193

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card