CVE-2025-4674
CVE-2025-4674 is a high-severity vulnerability in Golang Go with a CVSS 3.x base score of 8.6. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-73.
Key facts
- Severity: High (CVSS 3.x base score 8.6)
- EPSS exploit prediction: 0% (42nd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-23047
- Weakness: CWE-73
- Affected product: Golang Go
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2025-4674?
- CVE-2025-4674 has a CVSS 3.x base score of 8.6, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2025-4674 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (42nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-4674?
- CVE-2025-4674 affects Golang Go. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-4674?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2025-4674 have an EU (EUVD) identifier?
- Yes. CVE-2025-4674 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-23047.
- When was CVE-2025-4674 published?
- CVE-2025-4674 was published on 2025-07-29 and last updated on 2026-06-17.
References
- https://go.dev/cl/686515
- https://go.dev/issue/74380
- https://groups.google.com/g/golang-announce/c/gTNJnDXmn34
- https://pkg.go.dev/vuln/GO-2025-3828
- http://www.openwall.com/lists/oss-security/2025/07/08/5
Affected products (1)
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
More vulnerabilities in Golang Go
- CVE-2025-68121 — Critical (CVSS 10.0): During session resumption in crypto/tls, if the underlying Config has its ClientCAs or RootCAs fields mutated between…
- CVE-2026-27143 — Critical (CVSS 9.8): Arithmetic over induction variables in loops were not correctly checked for underflow or overflow. As a result, the…
- CVE-2024-24790 — Critical (CVSS 9.8): The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected for IPv4-mapped IPv6 addresses, returning…
- CVE-2023-39320 — Critical (CVSS 9.8): The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the…
- CVE-2023-29405 — Critical (CVSS 9.8): The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a…
- CVE-2023-29404 — Critical (CVSS 9.8): The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a…
All CVEs affecting Golang Go →
Other CWE-73 vulnerabilities
- CVE-2026-124822 — Critical (CVSS 10.0): The Easy DragDrop File Uploader WordPress plugin before 1.1.10 does not validate a user-supplied path before deleting…
- CVE-2026-107594 — Critical (CVSS 10.0): The File Upload to Order WordPress plugin before 1.1.4 does not validate or confine a file path taken from…
- CVE-2026-101148 — Critical (CVSS 10.0): The BackupSheep WordPress Backup Plugin WordPress plugin through 1.8 does not properly validate its integration key,…
- CVE-2026-20358 — Critical (CVSS 10.0): As part of Cisco's ongoing commitment to proactive security and product quality, the Cisco Crosswork engineering team…
- CVE-2026-50148 — Critical (CVSS 10.0): Metabase is an open-source business intelligence and embedded analytics tool. From 1.54.0 until 1.54.24, 1.55.24,…
- CVE-2025-71338 — Critical (CVSS 10.0): Flowise through 2.2.7 fails to sanitize path segments in the document-store loader endpoint, allowing unauthenticated…