Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
High 7.8CVE-2026-137941

GIMP: heap out-of-bounds write via unvalidated Levels channel property

Published 27/11/2026 · Updated 27/11/2026 · Red Hat Enterprise Linux 6

Summary

A flaw was found in GIMP's Levels configuration setter. The channel enum is not validated before it is used to index fixed-size per-channel arrays. A crafted XCF file containing a non-destructive Levels filter can set an out-of-range channel (LUMINANCE or RGB). Opening such a file triggers a heap out-of-bounds read and write.

Per the CVSS vector (7.8, High), the attack is local, low complexity, and requires no privileges. User interaction is required: the victim must open a malicious XCF file. The impact may be a crash or arbitrary code execution in the user's context, affecting confidentiality, integrity and availability.

The flaw is not listed in the CISA KEV catalog, and no EPSS data is available.

Who is affected

Organizations running GIMP on Red Hat Enterprise Linux 6, 7, 8 or 9, especially where users open XCF files from untrusted sources.

What to do

  1. Do not open untrusted XCF files in GIMP.
  2. If GIMP is unused, remove the gimp package.
  3. Identify exposed systems by inventorying hosts with the gimp package installed (e.g. rpm -q gimp).
  4. No fixed version is listed in the record. Monitor Red Hat's advisory (https://access.redhat.com/security/cve/CVE-2026-137941) and apply updates once available.
  5. For technical details of the fix, see the upstream commit and issue 17004 in GNOME GitLab.

Vendor workaround

Do not open untrusted XCF files in GIMP. If GIMP is unused, remove the gimp package.

Original text from the vendor's CVE record.

Affected products and versions

Red Hat Red Hat Enterprise Linux 6
Red Hat Red Hat Enterprise Linux 7
Red Hat Red Hat Enterprise Linux 8
Red Hat Red Hat Enterprise Linux 9

CVSS vector, explained

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

Attack vector
Local
Attack complexity
Low
Privileges required
None (no login)
User interaction
Required
Scope
Vulnerable component only
Confidentiality
High impact
Integrity
High impact
Availability
High impact

Weakness type (CWE)

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.