CVE-2026-137941 — Red Hat
HIGHCVE-2026-137941 is a high-severity (CVSS 7.8) Out-of-bounds Read vulnerability. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
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…
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.
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Remediation status
The records we use list no fixed release for CVE-2026-137941. Check the upstream advisory for a patched version, and apply the exposure-reduction steps below in the meantime.
Mitigate without a patch
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated Important because opening a crafted XCF can trigger a heap out-of-bounds write in the GIMP process and may allow arbitrary code execution at the privileges of the local user, even though explicit user interaction is required to open the file. GIMP is an interactive desktop application…
Do not open untrusted XCF files in GIMP. If GIMP is unused, remove the gimp package.Source: Red Hat security advisory for CVE-2026-137941 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2026-137941 in your dependencies?
Find it across your dependency tree, including transitive dependencies.