CVE-2026-106062

Gimp: gimp: heap buffer overflow in dds loader on crafted directdraw surface file

Published Oct 6, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A heap‑based buffer overflow occurs in GIMP’s DirectDraw Surface loader when it processes a crafted DDS image. When loading the image, buffer sizes derived from width, height, and pitch are computed using 32‑bit arithmetic that overflows, causing an under‑allocated buffer that is too small for the pixel data GEGL writes. The resulting heap corruption can lead to arbitrary code execution inside the GIMP process.

Affected Systems

The flaw is present in the GIMP packages shipped on Red Hat Enterprise Linux 6, 7, 8, 9 and 10 – all major releases that bundle the vulnerable GIMP binary. Users running these distributions and installing the default GIMP installation are therefore exposed, regardless of the specific kernel or user‑land mitigations applied.

Risk and Exploitability

The CVSS base score of 7.8 classifies the vulnerability as high severity. The EPSS score of 0.0015 (<1%) indicates a very low probability of exploitation, and the flaw is not listed in CISA’s KEV catalog. Exploitation requires the attacker to supply a malicious DDS image to the GIMP process, typically by tricking a user or via automated image handling scripts. Hardening measures such as full RELRO, PIE, ASLR, FORTIFY_SOURCE, and heap allocator protections raise the bar for successful exploitation but do not close the underlying vulnerability.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Apply the latest GIMP security update that fixes the DDS loader integer‑overflow and heap overflow.
  • Avoid opening DDS files from untrusted or unknown sources; treat such files as potentially malicious.
  • Enable runtime hardening on the GIMP binary by configuring full RELRO, PIE, ASLR, FORTIFY_SOURCE, and heap allocator protections to make exploitation more difficult.

Generated by OpenCVE AI on October 8, 2026 at 09:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
References
Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp
Type Values Removed Values Added
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 (CWE-787), following integer overflow in size calculations (CWE-190). This may allow heap corruption and, in the worst case, arbitrary code execution in the context of the GIMP process. 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.
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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 (CWE-787), following integer overflow in size calculations (CWE-190). This may allow heap corruption and, in the worst case, arbitrary code execution in the context of the GIMP process.
Title Gimp: gimp: heap buffer overflow in dds loader on crafted directdraw surface file
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-119
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 11, 2026, 12:07 PM
Reserved
Oct 6, 2026, 2:26 PM
Status
Awaiting Analysis
Published
Oct 6, 2026, 9:17 PM
Modified
Nov 11, 2026, 1:17 PM
Severity
Important
Public date
Oct 6, 2026, 12:00 AM