CVE-2026-58383
gimp: gimp: Heap buffer overflow via bpp=0 infinite loop in ReadJeffsImage()
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 11, 2026
Updated · November 5, 2026
Description
A flaw was found in GIMP's Jeff's Image Format (JIF) parser. A heap-based out-of-bounds write occurs in the ReadJeffsImage() function when a crafted JIF file sets bits-per-pixel to 0, causing the unpack loop to never advance and to write indefinitely past the destination buffer. This could lead to memory corruption, potentially resulting in denial of service or arbitrary code execution.
Statement
A flaw was found in GIMP's Jeff's Image Format (JIF) parser. When a crafted JIF file sets bits-per-pixel to 0, the unpack loop in ReadJeffsImage() never advances and writes past the destination buffer, leading to memory corruption. Successful exploitation requires a user to open a specially crafted JIF file in a build that includes the JIF import path.
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-787 · Out-of-bounds Write