CVE-2026-66758

published 27 Jul 2026 · updated 4 Nov 2026

Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images

8.8HighCVSS 7.8EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

A flaw was found in the file-fits plugin in GIMP. When processing a FITS image file, the plugin calculates memory allocation sizes using signed 32-bit integers for width and height. If a crafted file sets both values to large values, their product exceeds 2^31 and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when cfitsio subsequently writes a full row of pixels in the buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GIMPgimp=3.2.4, =3.0.8
GNOME
Red HatEnterprise Linux
redhatenterprise_linux=8.0, =9.0, =7.0, =6.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-66758 severity on Zeptric[![CVE-2026-66758](https://zeptric.io/badge/cve/CVE-2026-66758.svg)](https://zeptric.io/cve/CVE-2026-66758)