CVE-2025-4674

published 29 Jul 2025 · updated 4 Nov 2025

Unexpected command execution in untrusted VCS repositories in cmd/go

8.6HighCVSS 8.6EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.23.11 and 1.24.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go toolchain<1.23.11, >=1.24.0-0 <1.24.51.23.11, 1.24.5

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-4674 severity on Zeptric[![CVE-2025-4674](https://zeptric.io/badge/cve/CVE-2025-4674.svg)](https://zeptric.io/cve/CVE-2025-4674)