CVE-2025-68119
High 7.0No known exploitationFix availableUnexpected code execution when invoking toolchain in cmd/go
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 32% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
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
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Go toolchain | cmd/go | from 1.25.0 before 1.25.6 | 1.25.6 | CVE Program |
| Go toolchain | cmd/go | all versions before 1.24.13 | 1.24.13 | CVE Program |
| golang | go | from 1.25.0 before 1.25.6 | 1.25.6 | NIST NVD |
| golang | go | all versions before 1.24.12 | 1.24.12 | NIST NVD |
Timeline
Disclosure
CVE record published by Go
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (Go)
Vendor guidance and references
- https://go.dev/cl/736710 (opens in a new tab)patch
- https://go.dev/issue/77099 (opens in a new tab)issue tracking, patch
- https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc (opens in a new tab)mailing list, release notes
- https://pkg.go.dev/vuln/GO-2026-4338 (opens in a new tab)vendor advisory