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

Published Nov 27, 2026
·
Updated

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.

Affected Software

1 affected component
GIMP GIMP

Event History

Nov 27, 2026
CVE Published
via MITRE·08:29 PM
Data Sourced
via MITRE·08:29 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What must an attacker do to trigger this issue?

An attacker must convince a user to open a crafted XCF file containing a non-destructive Levels filter. The file sets the Levels channel property to an out-of-range value such as LUMINANCE or RGB.

2

Who is exposed to this vulnerability?

GIMP users who open untrusted or attacker-supplied XCF files are exposed. Exploitation requires local handling of the malicious file and user interaction to open it.

3

What can happen when a malicious file is opened?

Opening the crafted XCF can cause heap out-of-bounds reads and writes. This may crash GIMP or potentially allow arbitrary code execution with the privileges of the user running GIMP.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203