Skip to content
CVE PROGRAM SOURCE RECORD7.3 High

CVE-2026-58380

Gimp: gimp: stack buffer overflow in pnmscanner_gettoken()

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Red Hat Red Hat Enterprise Linux 8

Default version status: affected

  • 8100020260824165450.4c9c024f to < *unaffected

Red Hat Red Hat Enterprise Linux 9

Default version status: affected

  • 2:3.0.4-4.el9_8.7 to < *unaffected

Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Default version status: affected

  • 2:2.99.8-4.el9_4.19 to < *unaffected

Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support

Default version status: affected

  • 2:2.99.8-4.el9_6.20 to < *unaffected

Red Hat Red Hat Enterprise Linux 6

Default version status: unknown

Red Hat Red Hat Enterprise Linux 7

Default version status: affected

References