CVE-2026-58380
HIGH severity · CVSS 7.3 · CWE-193
7.3CVSS HIGH
Summary
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.
Impact & exploitability
Attack vectorLocal
Attack complexityLow
Privileges requiredLow
User interactionRequired
Confidentiality impactHigh
Integrity impactHigh
Availability impactHigh
Exploit probability (EPSS)0%
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Affected products we track (1)
Recommendation
Apply the vendor fix promptly. Open any affected product above for its exact safe version.
Additional information
- NVD record
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206Advisory
- https://access.redhat.com/errata/RHSA-2026:40751
- https://access.redhat.com/errata/RHSA-2026:62507
- https://access.redhat.com/security/cve/CVE-2026-58380Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2496135Advisory
- https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817