CVE-2026-58380

high

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.

References

https://gitlab.gnome.org/GNOME/gimp/-/issues/16206

https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817

https://bugzilla.redhat.com/show_bug.cgi?id=2496135

https://access.redhat.com/security/cve/CVE-2026-58380

Details

Source: Mitre, NVD

Published: 2026-07-06

Updated: 2026-07-06

Risk Information

CVSS v2

Base Score: 6.8

Vector: CVSS2#AV:L/AC:L/Au:S/C:C/I:C/A:C

Severity: Medium

CVSS v3

Base Score: 7.3

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Severity: High

EPSS

EPSS: 0.00122