CVE Database›Document archive›CVE-2026-106062

CVE-2026-106062

gimp: GIMP: heap buffer overflow in DDS loader on crafted DirectDraw Surface file

Loading…

Severity

Important

Red Hat Product Security

7.8

CVSS 3.1

Review impact separately from score.

Published · October 6, 2026

Updated · November 3, 2026

Description

A heap-based buffer overflow was found in GIMP’s DirectDraw Surface (DDS) loader. When loading a crafted DDS image, buffer sizes derived from width, height, and pitch can be computed using 32-bit arithmetic that overflows. The allocated buffer is too small for the amount of pixel data written through GEGL, following integer overflow in size calculations. This may allow heap corruption and, in the worst case, arbitrary code execution in the context of the GIMP process.

Statement

A heap-based buffer overflow was found in GIMP in the DDS image loader. A local attacker could provide a specially crafted DDS file that, when opened by the victim, causes GIMP to write past the end of a heap-allocated buffer. This could crash GIMP or potentially execute arbitrary code with the privileges of the user running GIMP. The attacker must convince the user to open the malicious file.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this do not open DDS files from untrusted sources. Exploitation may be harder on hardened systems (Full RELRO/PIE, ASLR, FORTIFY_SOURCE, heap allocator protections) but the vulnerability remains.

CVSS / CWE

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

CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer