Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-68119: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Go toolchain cmd/go

0
High
VulnerabilityCVE-2025-68119cvecve-2025-68119cwe-78
Published: Wed Jan 28 2026 (01/28/2026, 19:30:30 UTC)
Source: CVE Database V5
Vendor/Project: Go toolchain
Product: cmd/go

Description

CVE-2025-68119 is a high-severity OS command injection vulnerability in the Go toolchain's cmd/go module downloader. It arises when malicious version strings are used during module download and build processes, particularly on systems with Mercurial or Git installed. On Mercurial systems, this can lead to unexpected code execution due to unsafe construction of external VCS commands. On Git systems, malicious version strings can enable arbitrary file writes. The vulnerability requires explicit use of crafted version strings and does not affect default usage patterns like @latest or bare module paths. Exploitation requires local access with low privileges and high attack complexity. No known exploits are currently reported in the wild. European organizations using Go 1. 25. 0 and relying on custom or non-standard module sources are at risk, especially those with Mercurial or Git installed.

AI-Powered Analysis

AILast updated: 02/05/2026, 09:02:35 UTC

Technical Analysis

CVE-2025-68119 is an OS command injection vulnerability classified under CWE-78, affecting the Go toolchain's cmd/go module downloader in version 1.25.0. The vulnerability is triggered when the toolchain processes maliciously crafted version strings during module download and build operations. Specifically, on systems where Mercurial (hg) is installed, the vulnerability arises from improper neutralization of special elements in external VCS command construction, allowing an attacker to execute arbitrary local code. On systems with Git installed, the vulnerability allows an attacker to write arbitrary files to the filesystem by exploiting the way version strings are handled. The attack vector requires the attacker to supply malicious version strings explicitly; normal usage patterns such as using @latest or bare module paths are not vulnerable. The CVSS v3.1 score is 7.0 (high), reflecting local attack vector, high attack complexity, low privileges required, no user interaction, and high impact on confidentiality, integrity, and availability. No public exploits are currently known. The vulnerability highlights the risk of trusting unvalidated version strings in module management tools and the dangers of command injection when external VCS commands are constructed unsafely. This issue is particularly relevant for development environments that rely on custom or non-standard module sources and have Mercurial or Git installed.

Potential Impact

For European organizations, this vulnerability poses a significant risk to software development environments using Go 1.25.0, especially those that incorporate modules from non-standard or custom sources. Successful exploitation can lead to local code execution or arbitrary file writes, potentially compromising developer workstations or build servers. This can result in unauthorized code execution, data tampering, or disruption of build processes, undermining software integrity and availability. Given the reliance on Go in many European tech companies, fintech, and critical infrastructure software development, the impact could extend to supply chain security and downstream applications. Organizations with lax controls on module version inputs or that allow developers to specify arbitrary versions without validation are particularly vulnerable. The requirement for local access and explicit malicious version strings somewhat limits remote exploitation but does not eliminate insider threats or attacks via compromised developer machines. The absence of known exploits suggests a window for proactive mitigation before widespread abuse.

Mitigation Recommendations

European organizations should implement strict validation and sanitization of version strings used in Go module downloads, especially when sourcing from non-standard or custom domains. Avoid using untrusted or arbitrary version strings and restrict module downloads to trusted repositories. Upgrade to patched versions of the Go toolchain as soon as they become available. In the interim, consider disabling or limiting the use of Mercurial and Git in build environments if not required or isolate build environments to reduce risk. Employ least privilege principles for developer and build system accounts to minimize the impact of local code execution. Monitor build logs and filesystem changes for unusual activity related to module downloads. Incorporate static and dynamic analysis tools to detect suspicious command constructions or file writes during builds. Educate developers about the risks of using unverified module versions and enforce policies that prevent arbitrary version string inputs. Finally, maintain up-to-date inventories of development tools and dependencies to quickly identify affected systems.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
Go
Date Reserved
2025-12-15T16:48:04.450Z
Cvss Version
null
State
PUBLISHED

Threat ID: 697a653b4623b1157cea4eec

Added to database: 1/28/2026, 7:36:27 PM

Last enriched: 2/5/2026, 9:02:35 AM

Last updated: 2/7/2026, 2:57:42 AM

Views: 19

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats