CVE-2026-18302

GIMP TIF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

Published Aug 20, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
GIMP TIF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the parsing of TIF files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-29398.

Analysis

AI-generated

Technical impact

The flaw is a heap‑based buffer overflow, identified as CWE‑120 and CWE‑122, that is triggered during the parsing of TIF files in GIMP. The code does not validate the user‑supplied data length before copying it into a heap buffer, allowing an attacker to craft a malicious TIF file and gain execution in the context of the GIMP process. This vulnerability can be leveraged to run arbitrary code with the privileges of the user running the application, leading to full compromise of the application and potentially the host system.

Affected Systems

All installations of GIMP that include the vulnerable TIF parsing module are affected. The advisory references the commit that introduced the fix, so any release prior to that commit is vulnerable. The CVE does not list specific versions, but users should check whether their version predates the commit 77e1a11636fae53c922fe92273b8f4e33c7a9176.

Risk and Exploitability

The CVSS score of 7.8 classifies this as high severity. The EPSS score is less than 1%, indicating a very low exploitation probability at this time, and the vulnerability is not listed in the CISA KEV catalog. Attackers must obtain user interaction – the victim must open a malicious TIF file or visit a page that loads it – to trigger the overflow. With social engineering or compromised websites, the attack surface could increase, yet the overall risk remains moderate given the low EPSS.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest GIMP release that incorporates the fix for the TIF parsing bug, which addresses the heap‑based buffer overflow (CWE‑120) and unchecked memory handling (CWE‑122).
  • If an update is unavailable, avoid opening or downloading TIF files from untrusted or unknown sources until the patch is applied.
  • Configure automatic system or application updates for GIMP, or establish a routine to check for and apply security patches promptly to protect against future vulnerabilities.

Generated by OpenCVE AI on August 22, 2026 at 02:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6470-1 gimp security update
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gimp:gimp:3.2.2:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Weaknesses CWE-120
References
Metrics threat_severity

None

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

threat_severity

Important

Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp
Type Values Removed Values Added
Description GIMP TIF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of TIF files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-29398.
Title GIMP TIF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability
Weaknesses CWE-122
References
Metrics cvssV3_0

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

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
zdi
Published
Updated
Aug 27, 2026, 4:24 PM
Reserved
Jul 29, 2026, 5:12 PM
Status
Analyzed
Published
Aug 20, 2026, 5:17 PM
Modified
Oct 26, 2026, 10:10 AM
Severity
Important
Public date
Aug 20, 2026, 4:23 PM