CVE-2025-68119
HIGH 7.0CVSS 3.1Unexpected code execution when invoking toolchain in cmd/go
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.
- Published
- 28 Jan 2026
- Last modified
- 23 Nov 2026
- Assigned by
- security@golang.org
- NVD status
- Analyzed
- Weakness
- CWE-787
- Also known as
- BIT-golang-2025-68119GO-2026-4338
- Sources
- NVDJSONCVE ListJSONOSV GO-2026-4338JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | CISA-ADP | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.24.12 | 1.24.12 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.25.0, < 1.25.6 | 1.25.6 |
| CVE List | https://pkg.go.dev | cmd/go | < 1.24.13; >= 1.25.0, < 1.25.6 | 1.24.13, 1.25.6 |
| OSV | Go | toolchain | < 1.24.13; >= 1.25.0, < 1.25.6 | 1.24.13, 1.25.6 |
References
- https://go.dev/cl/736710 · Patch, FIX
- https://go.dev/issue/77099 · Issue Tracking, Patch, REPORT
- https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc · Mailing List, Release Notes, WEB
- https://pkg.go.dev/vuln/GO-2026-4338 · Vendor Advisory
History
- 25 Nov 2026 20:34 UTC · CVE List: first stored (published 28 Jan 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jan 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 28 Jan 2026)