CVE-2026-137941 Gimp: gimp: heap out-of-bounds write via unvalidated levels channel property

Published Updated

A crafted XCF file opened in GIMP can trigger heap out-of-bounds memory access, crashing it or executing code.

CVSS score

High

7.8/10

CVSS 3.1 · Scored by Red Hat Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Local or same network
No login, a user must click or open something

What is CVE-2026-137941?

CVE-2026-137941 is a high-severity memory corruption vulnerability in gimp, published on 27 Nov 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. The Levels configuration setter does not validate the channel enum before using it to index fixed-size per-channel arrays. A crafted XCF file with a non-destructive Levels filter can set an out-of-range channel (LUMINANCE or RGB), causing a heap out-of-bounds read and write when the file is opened. This may lead to a crash or arbitrary code execution.

Weakness: CWE-125

How severe is CVE-2026-137941?

CVE-2026-137941 scores 7.8 out of 10 under CVSS 3.1, which is high severity. It was scored by Red Hat.

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Which versions are affected by CVE-2026-137941?

It affects 2 products.

An affected version is exposed as installed. No special setting or call is needed.

Status by vendor 4
WhoReleaseStatusPackages
Red Hat8affectedgimp, gimp-devel, gimp-devel-tools and 12 more
pkg:rpm/redhat/gimp?distro=rhel-8
pkg:rpm/redhat/gimp-devel?distro=rhel-8
pkg:rpm/redhat/gimp-devel-tools?distro=rhel-8
Red Hat9affectedgimp, gimp-libs
pkg:rpm/redhat/gimp?distro=rhel-9
pkg:rpm/redhat/gimp-libs?distro=rhel-9
Red Hatels/6end of lifegimp, gimp-devel, gimp-devel-tools and 2 more
pkg:rpm/redhat/gimp?distro=rhel-6
pkg:rpm/redhat/gimp-devel?distro=rhel-6
pkg:rpm/redhat/gimp-devel-tools?distro=rhel-6
Red Hatels/7affectedgimp, gimp-devel, gimp-devel-tools and 1 more
pkg:rpm/redhat/gimp?distro=rhel-7
pkg:rpm/redhat/gimp-devel?distro=rhel-7
pkg:rpm/redhat/gimp-devel-tools?distro=rhel-7

Products include Red Hat Enterprise Linux, Redhat Rhel Els.

CPE match criteria 3
CPE 2.3Versions
cpe:2.3:o:redhat:enterprise_linux:8:*:*:*:*:*:*:*8
cpe:2.3:o:redhat:enterprise_linux:9:*:*:*:*:*:*:*9
cpe:2.3:o:redhat:rhel_els:7:*:*:*:*:*:*:*7

How do I fix CVE-2026-137941?

No fix has been published for CVE-2026-137941 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2026-137941 being exploited?

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

Sources

Also known as DEBIAN-CVE-2026-137941, GHSA-f8xm-j6xg-cgjc.

Is CVE-2026-137941 in your software?

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

Check your SBOMs for free