CVE-2026-58386
gimp: gimp: Stack overflow via VLAs in load_image()
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 11, 2026
Updated · July 7, 2026
Description
A flaw was found in GIMP's TIM loader. File-controlled width, height, and palette size values are used directly in multiple variable-length array declarations in load_image(), allowing a crafted TIM file to force oversized stack allocations and memory corruption. This could lead to denial of service or arbitrary code execution.
Statement
A flaw was found in GIMP's TIM loader. The load_image() function uses file-controlled dimensions directly in stack-based variable-length arrays, which can lead to oversized stack allocations and memory corruption when a user opens a specially crafted TIM file.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CWE-121 · Stack-based Buffer Overflow