CVE-2026-40916: Gimp: gimp: denial of service due to stack buffer overflow in tim image loader

Published Apr 15, 2026
·
Updated

A flaw was found in GIMP. A stack buffer overflow vulnerability in the TIM image loader's 4BPP decoding path allows a local user to cause a Denial of Service (DoS). By opening a specially crafted TIM image file, the application crashes due to an unconditional overflow when writing to a variable-length array.

Other sources

The TIM image loader has a stack buffer overflow in the 4BPP decoding path. A variable-length array row[] is allocated as width bytes, but the decode loop writes 2 width bytes into it, unconditionally overflowing by exactly width bytes with data derived from the file. Opening any crafted 4BPP TIM file triggers the overflow and crashes GIMP.

Red Hat

Affected Software

6 affected components
GIMP GIMP
GIMP GIMP
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0

Event History

Apr 15, 2026
Data Sourced
via Red Hat·06:48 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·06:58 PM
Data Sourced
via MITRE·06:58 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-40916?

CVE-2026-40916 has been classified as a high-severity vulnerability due to its potential to cause Denial of Service.

2

How do I fix CVE-2026-40916?

To fix CVE-2026-40916, ensure that you update GIMP to the latest version where this vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-40916?

CVE-2026-40916 is a stack buffer overflow vulnerability in the TIM image loader of GIMP.

4

Who is affected by CVE-2026-40916?

Users of GIMP who open specially crafted TIM image files are at risk of being affected by CVE-2026-40916.

5

Can CVE-2026-40916 be exploited remotely?

CVE-2026-40916 cannot be exploited remotely as it requires local user interaction to open the malicious TIM image file.

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