{"id":"CVE-2025-4674","published":"2025-07-29T21:19:08Z","modified":"2025-11-04T21:10:50Z","title":"Unexpected command execution in untrusted VCS repositories in cmd/go","vendor":"Go toolchain","product":"cmd/go","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00475,"percentile":0.41968,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://go.dev/cl/686515","tags":[]},{"url":"https://go.dev/issue/74380","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/gTNJnDXmn34","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2025-3828","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/07/08/5","tags":[]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":8.39},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"go-toolchain","affectedVersions":[{"vendor":"Go toolchain","product":"cmd/go","versions":["< 1.23.11",">= 1.24.0-0, < 1.24.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-08-06T16:03:21.628652Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.23.11",">=1.24.0-0, <1.24.5"],"patched":["1.23.11","1.24.5"],"from":["GO-2025-3828"],"provenance":"source"}],"summary":{"text":"The Go toolchain's cmd/go component can execute unexpected commands when it operates on a repository that contains dangerous VCS configuration, including metadata for a version control system other than the one used to fetch it (for example, Mercurial metadata inside a Git-fetched repository). An attacker who can supply such a repository to a local user, who must take action such as running the go command in that untrusted repository, can cause commands to run, though modules retrieved with \"go get\" are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:24Z"},"euvd":{"id":"EUVD-2025-23047","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-24787","published":"2024-05-08","fixed":"1.22.3","kev":false,"link":{"from":"CVE-2024-24787","to":"CVE-2025-4674","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.22.3","toFixed":"1.23.11","daysApart":447}]}},{"cve":"CVE-2024-45340","published":"2025-01-28","fixed":"1.24.0-rc.2","kev":false},{"cve":"CVE-2025-22867","published":"2025-02-06","fixed":"1.24.0-rc.3","kev":false},{"cve":"CVE-2025-4674","published":"2025-07-29","fixed":"1.24.5","kev":false},{"cve":"CVE-2025-61731","published":"2026-01-28","fixed":"1.25.6","kev":false,"link":{"from":"CVE-2025-4674","to":"CVE-2025-61731","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.24.5","toFixed":"1.24.12","daysApart":183}]}},{"cve":"CVE-2025-68119","published":"2026-01-28","fixed":"1.25.6","kev":false},{"cve":"CVE-2025-61732","published":"2026-02-05","fixed":"1.25.7","kev":false}],"package":"Go:toolchain"}}