CVE-2025-4674
Unexpected command execution in untrusted VCS repositories in cmd/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.
INFO
Published Date :
July 29, 2025, 10:15 p.m.
Last Modified :
Jan. 29, 2026, 7:15 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- Update the Go toolchain to the latest version.
- Avoid using untrusted version control repositories.
- Review VCS configurations in repositories.
Public PoC/Exploit Available at Github
CVE-2025-4674 has a 2 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-4674.
| URL | Resource |
|---|---|
| https://go.dev/cl/686515 | Patch |
| https://go.dev/issue/74380 | Issue Tracking Third Party Advisory |
| https://groups.google.com/g/golang-announce/c/gTNJnDXmn34 | Mailing List Release Notes |
| https://pkg.go.dev/vuln/GO-2025-3828 | Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2025/07/08/5 | Mailing List Release Notes |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-4674 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-4674
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
A repository demonstrating how to scan Terraform Providers from the public internet.
Shell
Toolkit for k8s administrators/developers.
Dockerfile Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-4674 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-4674 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jan. 29, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions up to (excluding) 1.23.11 *cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions from (including) 1.24.0 up to (excluding) 1.24.5 Added Reference Type Go Project: https://go.dev/cl/686515 Types: Patch Added Reference Type Go Project: https://go.dev/issue/74380 Types: Issue Tracking, Third Party Advisory Added Reference Type Go Project: https://groups.google.com/g/golang-announce/c/gTNJnDXmn34 Types: Mailing List, Release Notes Added Reference Type Go Project: https://pkg.go.dev/vuln/GO-2025-3828 Types: Vendor Advisory Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2025/07/08/5 Types: Mailing List, Release Notes -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 04, 2025
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2025/07/08/5 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 06, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H Added CWE CWE-73 -
New CVE Received by [email protected]
Jul. 29, 2025
Action Type Old Value New Value Added 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. Added Reference https://go.dev/cl/686515 Added Reference https://go.dev/issue/74380 Added Reference https://groups.google.com/g/golang-announce/c/gTNJnDXmn34 Added Reference https://pkg.go.dev/vuln/GO-2025-3828