CVE-2025-4674: Go - Command Injection
- Cve: CVE-2025-4674
- Name: Go - Command Injection
- 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.
- Impact: Attackers can execute unexpected commands via crafted VCS metadata, potentially compromising the system.
- Remediation: Update to the latest Go version.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Epss score: 0.00475
- Epss percentile: 0.4189
- Assignee: [email protected]
- Published at: 2025-07-29T22:15:25Z
- Age in days: 483
- Modified at: 2026-06-17T09:33:46Z
- Patch available: yes
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-4674
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-73 | External Control of File Name or Path |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://go.dev/cl/686515 | Patch |
| https://pkg.go.dev/vuln/GO-2025-3828 | Vendor Advisory |
| https://go.dev/issue/74380 | Issue Tracking, Third Party Advisory |
| https://groups.google.com/g/golang-announce/c/gTNJnDXmn34 | Mailing List, Release Notes |
| http://www.openwall.com/lists/oss-security/2025/07/08/5 | Mailing List, Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| golang:go | >= 1.24.0, < 1.24.5; < 1.23.11 | no | nvd | /v1/products/golang/go |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| golang/go | fix | yes | /v1/repositories/golang/go |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exposed hosts: 1852470
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports