CVE-2026-66757: Gimp: signed integer overflow in file-sgi (sgi-lib) causes the plugin to crash on rle sgi images
A flaw was found in the file-sgi plugin in GIMP, affecting all versions. When processing an RLE-compressed SGI image, the plugin allocates memory for a row table. The image header dimensions (ysize and zsize) are read as 16-bit unsigned integers. If a crafted file sets both dimensions to their maximum value (65535), the multiplication ysize zsize overflows the standard 32-bit int boundary before being passed to calloc. This integer overflow issue results in undefined behavior, aborting the plugin and causing a denial of service.
Other sources
A flaw was found in the file-sgi plugin in GIMP. When processing an RLE-compressed SGI image, the plugin allocates memory for a row table. The image header dimensions (ysize and zsize) are read as 16-bit unsigned integers. If a crafted file sets both dimensions to their maximum value (65535), the multiplication ysize zsize overflows the standard 32-bit int boundary before being passed to calloc. This integer overflow issue results in undefined behavior, aborting the plugin and causing a denial of service.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-66757?
CVE-2026-66757 has a medium severity rating of 5.5.
How does CVE-2026-66757 affect GIMP?
CVE-2026-66757 affects GIMP by causing a crash in the file-sgi plugin when processing specially crafted RLE SGI images.
How can I fix CVE-2026-66757?
To fix CVE-2026-66757, update the GIMP file-sgi plugin to the latest patched version.
What type of vulnerability is CVE-2026-66757?
CVE-2026-66757 is classified as an integer overflow vulnerability.
What impact does CVE-2026-66757 have on system security?
The impact of CVE-2026-66757 could lead to denial of service due to the crashing of the GIMP application.