Back
CVE-2025-4674
Unexpected command execution in untrusted VCS repositories in cmd/go
High8.6EPSS 0.47%
- Published
- Updated
- Reserved
- Assigned by
- Go
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High8.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High8.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.47% · top 59% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.6.
Weakness
- CWE-73: External Control of File Name or Path
- CWE-73 External Control of File Name or Path (opens in a new tab)All about CWE-73 and its CVEs
Affected products
- affected < 1.23.11
- affected 1.24.0-0 – < 1.24.5
References (5)
- https://go.dev/cl/686515 (opens in a new tab)
- https://go.dev/issue/74380 (opens in a new tab)
- https://groups.google.com/g/golang-announce/c/gTNJnDXmn34 (opens in a new tab)
- https://pkg.go.dev/vuln/GO-2025-3828 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2025/07/08/5 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-4674)Record last updated .