Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious dataset identifier string
-
ExploitPass to GMT which module
-
ExecutionTrigger stack buffer overflow in gmt_remote_dataset_id
-
ImpactExecute arbitrary code locally
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Local attacker with ability to invoke GMT command-line tools (e.g., gmt which) with specially crafted dataset identifier strings. Affects GMT versions 6.6.0 and prior. No authentication required; no user interaction needed. Attacker must execute malicious command locally on system where GMT is installed. |
| Impact | The CVSS v3.1 vector (AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H) indicates a local attack vector with low complexity and no privileges required, resulting in high availability impact and low confidentiality and integrity impact. While the local attack vector reduces remote exploitation risk, the lack of required privileges or user interaction makes exploitation straightforward once an attacker has local access. The vulnerability enables potential arbitrary code execution (tagged as RCE), which significantly elevates risk beyond the availability impact suggested by the CVSS score. Given that GMT is commonly used in research and data processing environments where untrusted datasets might be processed, the real-world risk is moderate to high for organizations using affected versions. A patch has been released (commit 0ad2b49), which is critical for risk mitigation. No EPSS score or KEV status is provided in the available data, suggesting no widespread active exploitation has been observed yet, but the availability of a GitHub security advisory and patch commit increases the likelihood of future exploit development. |
| Exploit ScenarioDerived | An attacker with local access to a system running vulnerable GMT versions could craft a malicious dataset file or command-line argument containing an excessively long string as the dataset identifier. When a user or automated process invokes the GMT 'which' module or another function that calls gmt_remote_dataset_id with this malicious input, the stack buffer overflows, potentially allowing the attacker to execute arbitrary code with the privileges of the GMT process or crash the application for denial of service. Given the low attack complexity (AC:L) and no user interaction requirement (UI:N), exploitation is straightforward once an attacker can provide input to GMT tools. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
Stack-based buffer overflow in GMT versions 6.6.0 and earlier allows local attackers to crash the application or execute arbitrary code by supplying an excessively long dataset identifier to vulnerable functions like gmt_remote_dataset_id. The vulnerability affects command-line processing of geographic data and currently lacks a public patch, leaving all affected GMT installations exposed to local exploitation.
Earlier versions of this analysis (1)
A stack-based buffer overflow vulnerability exists in the GMT (Generic Mapping Tools) open source geospatial data manipulation toolkit, specifically in the gmt_remote_dataset_id function. Attackers can exploit this by providing a specially crafted long string as a dataset identifier (for example through the 'which' module), potentially leading to arbitrary code execution or denial of service. The vulnerability affects GMT versions from 6.6.0 and all prior versions, with a CVSS score of 7.3 indicating high severity primarily due to availability impact.
RemediationAI
Users should immediately upgrade to a patched version of GMT that includes commit 0ad2b491470df82c9ec1139dcbd70502fa28a082, which addresses the stack-based buffer overflow in the gmt_remote_dataset_id function. The patch details are available at https://github.com/GenericMappingTools/gmt/commit/0ad2b491470df82c9ec1139dcbd70502fa28a082 and the security advisory at https://github.com/GenericMappingTools/gmt/security/advisories/GHSA-fqxx-62x7-9gwg. Until patching is completed, organizations should implement defense-in-depth measures such as restricting the processing of untrusted or external datasets, running GMT tools with minimal privileges in sandboxed environments, and validating dataset identifiers before passing them to GMT functions. Input validation should specifically check for excessively long strings in dataset identifiers to prevent buffer overflow conditions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GMT (Generic Mapping Tools) is an open source collection of command-line utilities for processing geographic and Cartesian datasets, widely used in geoscience research and mapping applications. The vulnerability is classified under CWE-121 (Stack-based Buffer Overflow) and resides in the gmt_remote_dataset_id function within src/gmt_remote.c. This function improperly handles user-supplied dataset identifiers without adequate bounds checking, allowing an overly long string to overflow the stack buffer. The affected product is identified via CPE as cpe:2.3:a:genericmappingtools:gmt:*:*:*:*:*:*:*:*, indicating the core GMT application. Stack-based buffer overflows are particularly dangerous as they can overwrite return addresses and function pointers, enabling attackers to redirect program execution flow.
Know when Gmt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
GMT is an open source collection of command-line tools for manipulating geographic and Cartesian data sets. In versions from 6.6.0 and prior, a stack-based buffer overflow vulnerability was identified in the gmt_remote_dataset_id function within src/gmt_remote.c. This issue occurs when a specially crafted long string is passed as a dataset identifier (e.g., via the which module), leading to a crash or potential arbitrary code execution. This issue has been patched via commit 0ad2b49.
Articles & Coverage 1
Executive ViewAI
A critical vulnerability in GMT (Generic Mapping Tools) version 6.6.0 and earlier allows remote attackers to execute arbitrary code or cause service disruptions through specially crafted dataset identifiers. Organizations using GMT for geospatial data processing face operational disruption and potential data compromise until remediation is implemented.
Implement network segmentation to limit GMT tool access to trusted users and systems only; disable or restrict the GMT 'which' module if business operations permit; enforce strict input validation and length restrictions on dataset identifier parameters at the application layer; monitor GMT process execution for anomalous behavior; consider running GMT in isolated containerized environments with restricted resource limits; maintain current offline backups of critical geospatial datasets; establish a vendor contact protocol to track GMT patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-13784
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB