CVE-2026-137941 PUBLISHED

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

Assigner: redhat
Reserved: 27.11.2026 Published: 27.11.2026 Updated: 27.11.2026

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.

Metrics

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

Product Status

Vendor Red Hat
Product Red Hat Enterprise Linux 6
Versions Default: unknown
Vendor Red Hat
Product Red Hat Enterprise Linux 7
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux 8
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux 9
Versions Default: affected

Workarounds

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

Credits

  • Red Hat would like to thank wooze for reporting this issue.

References

Problem Types

  • Out-of-bounds Read CWE