CVE-2025-4674: The go command may execute unexpected commands when operating in untrusted VCS repositories
Source GCVE Database
Not known to be exploited · CVSS 8.6 High.
Data as of 4 Nov 2026, 17:56 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 8.6 |
|---|
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Gogithub.com/golang/go/cmd/gopkg:golang/github.com/golang/go/cmd/goOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should avoid operating the go command in untrusted VCS repositories containing mixed VCS metadata until a fix is available.
Description
CVE-2025-4674 is a high-severity vulnerability in the go command where it may execute unexpected commands when operating in untrusted version control system (VCS) repositories. This occurs if a repository fetched by one VCS contains metadata for another VCS, potentially leading to command execution. Modules retrieved via "go get" are not affected.
References
- nvd.nist.gov/vuln/detail/CVE-2025-4674 (opens in a new tab)
- go.dev/cl/686515 (opens in a new tab)
- go.dev/issue/74380 (opens in a new tab)
- groups.google.com/g/golang-announce/c/gTNJnDXmn34 (opens in a new tab)
- pkg.go.dev/vuln/GO-2025-3828 (opens in a new tab)
- openwall.com/lists/oss-security/2025/07/08/5 (opens in a new tab)