Vulnerability · Published Jan 28, 2026 · Assigned by Go

CVE-2025-68119Unexpected code execution when invoking toolchain in cmd/go

High 7.0

In plain English

A high-severity security flaw in cmd/go from Go toolchain. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.0High
Exploit odds (30 days)0.4%top 68.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Downloading and building modules with malicious version strings can cause local code execution. On systems with Mercurial (hg) installed, downloading modules from non-standard sources (e.g., custom domains) can cause unexpected code execution due to how external VCS commands are constructed. This issue can also be triggered by providing a malicious version string to the toolchain. On systems with Git installed, downloading and building modules with malicious version strings can allow an attacker to write to arbitrary files on the filesystem. This can only be triggered by explicitly providing the malicious version strings to the toolchain and does not affect usage of @latest or bare module paths.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.22go1.24.12-r0ALPINE-CVE-2025-68119
Alpine:v3.23go1.25.6-r0ALPINE-CVE-2025-68119
Alpine:v3.24go1.25.6-r0ALPINE-CVE-2025-68119
Debian:12golang-1.19no fix listedDEBIAN-CVE-2025-68119
Debian:13golang-1.24no fix listedDEBIAN-CVE-2025-68119
Gotoolchain1.25.6GO-2026-4338
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2025-68119
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2025-68119
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2025-68119
Ubuntu:22.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2025-68119
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2025-68119
Ubuntu:22.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2025-68119
Ubuntu:24.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2025-68119
Ubuntu:22.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2025-68119
Ubuntu:24.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2025-68119
Ubuntu:25.10golang-1.23no fix listedUBUNTU-CVE-2025-68119
Ubuntu:26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2025-68119
Ubuntu:22.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2025-68119
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2025-68119
Ubuntu:25.10golang-1.24no fix listedUBUNTU-CVE-2025-68119
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2025-68119
Ubuntu:22.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2025-68119
Ubuntu:24.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2025-68119
Ubuntu:25.10golang-1.25no fix listedUBUNTU-CVE-2025-68119
Ubuntu:26.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2025-68119

Affected products (as reported)

VendorProductVersions
Go toolchain cmd/go 1.25.0 – before 1.25.6

References