---
id: CVE-2026-40916
title: 'Gimp: gimp: denial of service due to stack buffer overflow in tim image loader'
summary: >-
  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 d…
severity: medium
cvss: 5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-787
vendor: Red Hat
product: gimp
affected:
  - gimp (all versions)
  - gimp (all versions)
  - 'gimp:2.8/gimp (all versions)'
  - gimp (all versions)
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-04-15T19:58:54.423338Z'
published: '2026-04-15'
updated: '2026-11-07'
sourceUpdated: '2026-11-07T05:02:06.709Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-40916'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-40916'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2458745'
    label: RHBZ#2458745
tags:
  - cve.org
epss: 0.0021
epssPercentile: 0.11304
ingestedAt: '2026-11-05T22:38:32.098Z'
---

## Overview

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.

## Affected

- `gimp (all versions)`
- `gimp (all versions)`
- `gimp:2.8/gimp (all versions)`
- `gimp (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

To mitigate this issue, users should avoid opening untrusted TIM image files with GIMP. As a general security practice, users should exercise caution when handling files from unknown or suspicious sources.
