Red Hat VEX
RHVEX-CVE-2025-68119
cmd/go: cmd/go: Local code execution and arbitrary file write via malicious module version strings
Details
A flaw was found in Golang's cmd/go module. This vulnerability allows a local attacker to achieve local code execution by downloading and building modules with specially crafted malicious version strings. On systems with Mercurial (hg) installed, this can occur when downloading modules from non-standard sources due to how external Version Control System (VCS) commands are constructed. Additionally, on systems with Git installed, providing malicious version strings to the toolchain can enable an attacker to write to arbitrary files on the filesystem. This issue is triggered by explicitly supplying these malicious version strings.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | go-toolset | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | golang | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | golang-bin | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | golang-docs | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | golang-misc | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | golang-race | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | golang-src | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | golang-tests | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | go-toolset | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | golang | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | golang-bin | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | golang-docs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | golang-misc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | golang-race | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | golang-src | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | golang-tests | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | go-toolset | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | golang | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | golang-bin | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | golang-docs | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | golang-misc | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | golang-race | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | golang-src | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | golang-tests | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2025-68119
- https://bugzilla.redhat.com/show_bug.cgi?id=2434438
- https://www.cve.org/CVERecord?id=CVE-2025-68119
- https://nvd.nist.gov/vuln/detail/CVE-2025-68119
- https://go.dev/cl/736710
- https://go.dev/issue/77099
- https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc
- https://pkg.go.dev/vuln/GO-2026-4338