CVE-2026-58380

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.

Scoring

Severity
HIGH
CVSS base score
7.3
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS probability
0.26%
CWE
CWE-193
Published
2026-07-06
Last modified
2026-09-02

Affected products

Weakness type

Related vulnerabilities

Markdown version · Browse all CVEs