CVE-2026-40918 Gimp: gimp: denial of service via crafted pvr image file

Medium 5.5 Published Updated

A crafted PVR image file causes a crash in GIMP via stack-based buffer overflow and out-of-bounds read, leading to denial of service.

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

CVE-2026-40918 is a medium-severity memory corruption 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. Processing a specially crafted PVR image file with large dimensions can lead to a denial of service (DoS). This occurs due to a stack-based buffer overflow and an out-of-bounds read in the PVR image loader, causing the application to crash. Systems that process untrusted PVR image files are affected.

Weakness: CWE-131

Which versions are affected by CVE-2026-40918?

It affects 2 products.

Products include Gimp Gimp, Redhat Enterprise Linux.

How do I fix CVE-2026-40918?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-40918 being exploited?

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

All Gimp Gimp vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-40918, GHSA-qh6q-mfp5-q5wr, UBUNTU-CVE-2026-40918.

Is CVE-2026-40918 in your software?

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

Check your SBOMs for free