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

- Severity: High 7.0 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-01-28T19:07:48.000Z
- Modified: 2026-11-23T21:16:50.013Z
- Also known as: GO-2026-4338, BIT-GOLANG-2025-68119
- Related: RHSA-2026:7291, RHSA-2026:7385
- Weaknesses: CWE-78, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- cmd/go: before 1.24.13; from 1.25.0 before 1.25.6
- toolchain (Go): before 1.24.13; from 1.25.0 before 1.25.6
- golang go: before 1.24.12; from 1.25.0 before 1.25.6
- golang (Bitnami): from 1.25.0 before 1.25.6

## Every score

- CISA-ADP: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/736710> (fix, patch)
- <https://go.dev/issue/77099> (fix, issue-tracking, patch, report)
- <https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc> (discussion, mailing-list, release-notes, web)
- <https://pkg.go.dev/vuln/GO-2026-4338> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68119> (web)

## Sources

- CVE List: [CVE-2025-68119](https://www.cve.org/CVERecord?id=CVE-2025-68119), CVE Terms of Use, modified 2026-11-23
- Go Vulnerability Database: [GO-2026-4338](https://pkg.go.dev/vuln/GO-2026-4338), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2025-68119](https://nvd.nist.gov/vuln/detail/CVE-2025-68119), Public domain, modified 2026-11-23
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-68119](https://osv.dev/vulnerability/BIT-GOLANG-2025-68119), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-68119 · Whole record: https://cve.day/CVE-2025-68119.json · Rebuilt by cve.day 2026-11-25T22:59:10.937Z
