{"id":"CVE-2025-4674","aliases":["CVE-2025-4674","GO-2025-3828","BIT-GOLANG-2025-4674"],"related":["CGA-q5c4-jwmf-whc2","RHSA-2025:13935","RHSA-2025:13936","RHSA-2025:13939","RHSA-2025:13940","RHSA-2025:13941","RHSA-2025:14093"],"kind":"vulnerability","state":"published","title":"Unexpected command execution in untrusted VCS repositories in cmd/go","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"El comando \"go\" puede ejecutar comandos inesperados al operar en repositorios VCS no confiables. Esto ocurre cuando existe una configuración de VCS potencialmente peligrosa en los repositorios. Esto puede ocurrir cuando un repositorio se obtuvo mediante un VCS (p. ej., Git), pero contiene metadatos para otro VCS (p. ej., Mercurial). Los módulos obtenidos mediante la línea de comandos \"go get\" no se ven afectados.","source":"nvd"}],"published":"2025-07-29T21:02:00.000Z","modified":"2026-09-08T08:47:49.080Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.6,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-73"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.23.11","status":"affected"},{"type":"semver","introduced":"1.24.0-0","fixed":"1.24.5","status":"affected"}],"vendor":"Go toolchain","product":"cmd/go","package":"cmd/go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.23.11"},{"type":"semver","introduced":"1.24.0-0","status":"affected","fixed":"1.24.5"}],"ecosystem":"Go","package":"toolchain","purl":"pkg:golang/toolchain","source":"go"},{"ranges":[{"status":"affected","fixed":"1.23.11"},{"status":"affected","introduced":"1.24.0","fixed":"1.24.5"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.23.11"},{"type":"semver","introduced":"1.24.0-0","status":"affected","fixed":"1.24.5"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://go.dev/cl/686515","tags":["fix","patch"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.dev/issue/74380","tags":["advisory","issue-tracking","report","third-party-advisory"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/gTNJnDXmn34","tags":["discussion","mailing-list","release-notes","web"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3828","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2025/07/08/5","tags":["discussion","mailing-list","release-notes"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4674","tags":["web"],"sources":["bitnami"]}],"credits":["RyotaK (https://ryotak.net) of GMO Flatt Security Inc"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-08-06T16:03:21.628Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-4674","url":"https://www.cve.org/CVERecord?id=CVE-2025-4674","licence":"CVE Terms of Use","modified":"2025-11-04T21:10:50.871Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3828","url":"https://pkg.go.dev/vuln/GO-2025-3828","licence":"CC-BY-4.0","modified":"2026-02-04T03:33:13.542Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-4674","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4674","licence":"Public domain","modified":"2026-06-17T09:33:46.027Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2025-4674","url":"https://osv.dev/vulnerability/BIT-GOLANG-2025-4674","licence":"Apache-2.0","modified":"2026-09-08T08:47:49.080Z"}],"updatedAt":"2026-11-25T22:59:01.857Z","epss":{"score":0.00475,"percentile":0.42686,"date":"2026-12-01T12:00:22.000Z"}}