CVE-2025-4674
published 2025-07-29CVE-2025-4674: The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present…
PriorityP346high8.6CVSS 3.1
AVLACLPRNUIRSCCHIHAH
EPSS
0.27%
19.0th percentile
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.
Affected
11 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-1.15 | < golang-1.24 1.24.7-1 (forky) | golang-1.24 1.24.7-1 (forky) |
| debian | golang-1.19 | < golang-1.24 1.24.7-1 (forky) | golang-1.24 1.24.7-1 (forky) |
| debian | golang-1.24 | < golang-1.24 1.24.7-1 (forky) | golang-1.24 1.24.7-1 (forky) |
| go_toolchain | cmd_go | < 1.23.11 | 1.23.11 |
| go_toolchain | cmd_go | >= 1.24.0-0 < 1.24.5 | 1.24.5 |
| golang | go | < 1.23.11 | 1.23.11 |
| golang | go | >= 1.24.0 < 1.24.5 | 1.24.5 |
| msrc | cbl2_golang_1.18.8-8_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_golang_1.18.8-9_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_golang_1.22.7-4_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_golang_1.22.7-5_on_cbl_mariner_2.0 | — | — |
CVSS provenance
nvdv3.18.6HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
osv8.6HIGH
vendor_debian8.6HIGH
vendor_msrc8.6HIGH
vendor_redhat8.6HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-wprm-fgrx-xj42: The go command may execute unexpected commands when operating in untrusted VCS repositories
ghsa_unreviewed·2025-07-30
CVE-2025-4674 [HIGH] CWE-73 GHSA-wprm-fgrx-xj42: The go command may execute unexpected commands when operating in untrusted VCS repositories
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.
OSV
Unexpected command execution in untrusted VCS repositories in cmd/go
osv·2025-07-29
CVE-2025-4674 Unexpected command execution in untrusted VCS repositories in cmd/go
Unexpected command execution in untrusted VCS repositories in cmd/go
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.
OSV
CVE-2025-4674: The go command may execute unexpected commands when operating in untrusted VCS repositories
osv·2025-07-29·CVSS 8.6
CVE-2025-4674 [HIGH] CVE-2025-4674: The go command may execute unexpected commands when operating in untrusted VCS repositories
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.
Red Hat
cmd/go: Go VCS Command Execution Vulnerability
vendor_redhat·2025-07-29·CVSS 8.6
CVE-2025-4674 [HIGH] CWE-74 cmd/go: Go VCS Command Execution Vulnerability
cmd/go: Go VCS Command Execution Vulnerability
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.
A flaw was found in cmd/go. The `go` command can execute arbitrary commands when processing untrusted version control system (VCS) repositories containing malicious configuration. This issue occurs because the command interprets VCS metadata, potentially leading to unintended command execution. This vulnerability allows a malicious actor to trigger this by
Microsoft
Unexpected command execution in untrusted VCS repositories in cmd/go
vendor_msrc·2025-07-08·CVSS 8.6
CVE-2025-4674 [HIGH] CWE-73 Unexpected command execution in untrusted VCS repositories in cmd/go
Unexpected command execution in untrusted VCS repositories in cmd/go
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
Go: Go
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https:
Debian
CVE-2025-4674: golang-1.15 - The go command may execute unexpected commands when operating in untrusted VCS r...
vendor_debian·2025·CVSS 8.6
CVE-2025-4674 [HIGH] CVE-2025-4674: golang-1.15 - The go command may execute unexpected commands when operating in untrusted VCS r...
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.
Scope: local
bullseye: open
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-07-29
Published