Skip to content
Threat Brief

← All advisories

CVE-2025-68119

High 7.0No known exploitationFix available

Unexpected code execution when invoking toolchain in cmd/go

Record last updated

CVSS score

7.0

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.4%

Higher than 32% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-787

Patching and mitigation

Patch status
Fix available (source: CVE record (Go))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
pkg.go.dev (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Go toolchaincmd/gofrom 1.25.0 before 1.25.61.25.6CVE Program
Go toolchaincmd/goall versions before 1.24.131.24.13CVE Program
golanggofrom 1.25.0 before 1.25.61.25.6NIST NVD
golanggoall versions before 1.24.121.24.12NIST NVD

Timeline

  1. Disclosure

    CVE record published by Go

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (Go)

    Source: CVE record (Go) (opens in a new tab)

Vendor guidance and references