CVE-2026-66757 Gimp: signed integer overflow in file-sgi (sgi-lib) causes the plugin to crash on rle sgi images

Medium 5.5 Published Updated

A signed integer overflow in GIMP's SGI plugin allows attackers to cause a denial of service via crafted RLE-compressed images.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-66757?

CVE-2026-66757 is a medium-severity vulnerability in Gimp Gimp, published on 27 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-190

Which versions are affected by CVE-2026-66757?

It affects 2 products.

Linux distribution packages (2)
gimp openSUSE:Leap 16.0All versions3.0.8-bp160.7.1
gimp openSUSE:Leap 16.0All versions3.0.8-bp160.8.1

Products include Gimp Gimp, Redhat Enterprise Linux.

How do I fix CVE-2026-66757?

Apply the vendor's patch.

Is CVE-2026-66757 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-66757 exists.

All Gimp Gimp vulnerabilities

Sources

Also known as CLSA-2026-1787057425, CLSA-2026-1787058577, DEBIAN-CVE-2026-66757, GHSA-3xfh-g29g-69hj, UBUNTU-CVE-2026-66757, openSUSE-SU-2026:21733-1 and 1 more.

Is CVE-2026-66757 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free