CVE-2026-58380

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.

Affected Software

VendorProductVersion RangeStatus
Red HatRed Hat Enterprise Linux 88100020260824165450.4c9c024f < *unaffected
Red HatRed Hat Enterprise Linux 92:3.0.4-4.el9_8.7 < *unaffected
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support2:2.99.8-4.el9_6.20 < *unaffected

Weaknesses

  • CWE-193: Off-by-one Error

Workarounds

None — requires opening a crafted PNM file.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

References