CVE-2026-66757
Gimp: signed integer overflow in file-sgi (sgi-lib) causes the plugin to crash on rle sgi images
What happened?
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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| gimpGNOME | Default status: affected | See vendor advisory |
| gimpRed Hat | Default status: unknown | See vendor advisory |
| gimpRed Hat | Default status: affected | See vendor advisory |
| gimp:2.8/gimpRed Hat | Default status: affected | See vendor advisory |
| gimpRed Hat | Default status: affected | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.