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.
Published: 2026-10-06
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary code execution
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Fri, 09 Oct 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp

Thu, 08 Oct 2026 08:00:00 +0000

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.

Thu, 08 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 07 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Tue, 06 Oct 2026 20:30:00 +0000

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'}


Subscriptions

Gimp Gimp
Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-16T18:55:10.354Z

Reserved: 2026-10-06T14:26:58.730Z

Link: CVE-2026-106062

cve-icon Vulnrichment

Updated: 2026-10-07T16:25:09.251Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-06T21:17:04.903

Modified: 2026-10-16T19:17:02.143

Link: CVE-2026-106062

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-106062 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T08:31:57Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer