CVE-2026-40915 Gimp: gimp: heap buffer overflow due to integer overflow in fits image loader

Medium 5.5 Published Updated

A remote attacker can cause a heap buffer overflow and potential code execution in GIMP by providing a specially crafted FITS image file.

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-40915?

CVE-2026-40915 is a medium-severity vulnerability in Gimp Gimp, published on 15 Apr 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 GIMP. A remote attacker could exploit an integer overflow vulnerability in the FITS image loader by providing a specially crafted FITS file. This integer overflow leads to a zero-byte memory allocation, which is then subjected to a heap buffer overflow when processing pixel data. Successful exploitation could result in a denial of service (DoS) or potentially arbitrary code execution.

Weakness: CWE-190

Which versions are affected by CVE-2026-40915?

It affects 2 products.

Products include Gimp Gimp, Redhat Enterprise Linux.

How do I fix CVE-2026-40915?

Apply the vendor's patch.

Is CVE-2026-40915 being exploited?

There is no known exploitation of CVE-2026-40915 in the wild and no public exploit code.

All Gimp Gimp vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-40915, GHSA-4f9g-vrx9-f8cq, UBUNTU-CVE-2026-40915.

Is CVE-2026-40915 in your software?

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

Check your SBOMs for free