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.004 (33.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 33rd percentile — 33.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.004 · change: +0.001
Affected products
- Golang Go
- Go Toolchain Cmd/go — versions 0, 1.24.0-0
Weakness classification (CWE)
Public proof-of-concept exploits
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)
- af854a3a-2127-422b-91ae-364da2661108 (Mailing List, Release Notes)
Frequently asked questions
- What is CVE-2025-4674?
- CVE-2025-4674 is a high-severity vulnerability in Golang Go, classified under External Control of File Name or Path. CVSS score: 8.6/10. Published 2025-07-29.
- How severe is CVE-2025-4674?
- High severity. CVSS v3 base score is 8.6 out of 10.
- Is CVE-2025-4674 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.