Vulnerability in Golang Go
CVE-2025-4674
The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present in repositories. This can happen when a repository was fetched via one VCS (e.g. Git), but contains metadata for another VCS (e.g. Mercurial). Modules which are retrieved using the go command line, i.e. via "go get", are not affected.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.6 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.005, 41.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Toolchain Cmd/go — versions 0, 1.24.0-0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (straubt1/tf-provider-scanning). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- go.dev/cl/686515 (Patch)
- go.dev/issue/74380 (Third Party Advisory, Issue Tracking)
- groups.google.com/g/golang-announce/c/gTNJnDXmn34 (Mailing List, Release Notes)
- pkg.go.dev/vuln/GO-2025-3828 (Vendor Advisory)
- www.openwall.com/lists/oss-security/2025/07/08/5 (Mailing List, Release Notes)