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:Jul 29, 2025
Last Modified:Jan 29, 2026
EPS:Jul 29, 2025
EPSS Score:0.00008
CVSS Score:8.6
Affected Products
Vendor
Product
Action
Vendor
Golang
Product
Go
Golang
Go
Vendor
Gotoolchain
Product
Cmd/go
Gotoolchain
Cmd/go
Exploits
No exploit reference
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
