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
- Do not open untrusted XCF files in GIMP.
- If GIMP is unused, remove the gimp package.
- Identify exposed systems by inventorying hosts with the gimp package installed (e.g. rpm -q gimp).
- 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.
- 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
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)
- CWE-125 Out-of-bounds Read
References
- access.redhat.com/security/cve/CVE-2026-137941
- gitlab.gnome.org/GNOME/gimp/-/commit/47f51b5b538cf1b27634b4c6f4f98b553138dbad
- gitlab.gnome.org/GNOME/gimp/-/issues/17004
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.