CVE-2025-4674
CVE-2025-4674 · Unexpected command execution in untrusted VCS repositories in cmd/go
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 8.6 · High · EPSS 0.4% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
cmd/go
- Versions
- ≥ 0, < 1.23.11: Affected (semver)
- ≥ 1.24.0-0, < 1.24.5: Affected (semver)
Update to 1.23.11; Update to 1.24.5
golang-1.19 Debian:12
- Versions
- 1.19.10-1
- 1.19.10-2
- 1.19.11-1
- 1.19.12-1
- 1.19.12-2
- 1.19.12-2~bpo11+1
- 1.19.12-2~bpo12+1
- 1.19.13-1
- 1.19.13-1~bpo11+1
- 1.19.13-1~bpo12+1
- 1.19.8-2
- 1.19.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.24 Debian:13
- Versions
- 1.24.12-1
- 1.24.13-1
- 1.24.13-2
- 1.24.4-1
- 1.24.4-2
- 1.24.4-3
- 1.24.4-4
- 1.24.7-1
- 1.24.8-1
- 1.24.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.18 Ubuntu:Pro:16.04:LTS
- Versions
- 1.18.1-1ubuntu1~16.04.6
- 1.18.1-1ubuntu1~16.04.6+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.18 Ubuntu:Pro:18.04:LTS
- Versions
- 1.18.1-1ubuntu1~18.04.3
- 1.18.1-1ubuntu1~18.04.4
- 1.18.1-1ubuntu1~18.04.4+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.18 Ubuntu:20.04:LTS
- Versions
- 1.18.1-1ubuntu1~20.04.1
- 1.18.1-1ubuntu1~20.04.2
- 1.18.1-1ubuntu1~20.04.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.20 Ubuntu:20.04:LTS
- Versions
- 1.20.3-1ubuntu0.1~20.04
- 1.20.3-1ubuntu0.1~20.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.21 Ubuntu:20.04:LTS
- Versions
- 1.21.1-1~ubuntu20.04.1
- 1.21.1-1~ubuntu20.04.2
- 1.21.1-1~ubuntu20.04.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.22 Ubuntu:20.04:LTS
- Versions
- 1.22.2-2~20.04.1
- 1.22.2-2~20.04.2
- 1.22.2-2~20.04.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.18 Ubuntu:22.04:LTS
- Versions
- 1.18~beta1-0ubuntu1
- 1.18~beta2-1ubuntu1
- 1.18~beta2-1ubuntu2
- 1.18~rc1-1ubuntu1
- 1.18-1ubuntu1
- 1.18.1-1ubuntu1
- 1.18.1-1ubuntu1.1
- 1.18.1-1ubuntu1.2
- 1.18.1-1ubuntu1.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.20 Ubuntu:22.04:LTS
- Versions
- 1.20.3-1ubuntu0.1~22.04
- 1.20.3-1ubuntu0.1~22.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.21 Ubuntu:22.04:LTS
- Versions
- 1.21.1-1~ubuntu22.04.1
- 1.21.1-1~ubuntu22.04.2
- 1.21.1-1~ubuntu22.04.3
- 1.21.1-1~ubuntu22.04.4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.22 Ubuntu:22.04:LTS
- Versions
- 1.22.2-2~22.04
- 1.22.2-2~22.04.1
- 1.22.2-2~22.04.2
- 1.22.2-2~22.04.3
- 1.22.2-2~22.04.4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.23 Ubuntu:22.04:LTS
- Versions
- 1.23.1-1~22.04
- 1.23.1-1~22.04.2
- 1.23.1-1~22.04.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.24 Ubuntu:22.04:LTS
- Versions
- 1.24.4-1ubuntu1~22.04.1
- 1.24.4-1ubuntu1~22.04.2
- 1.24.13-2~22.04.1
- 1.24.13-2~22.04.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.25 Ubuntu:22.04:LTS
- Versions
- 1.25.14-1~ubuntu0.22.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.21 Ubuntu:24.04:LTS
- Versions
- 1.21.1-1
- 1.21.3-1
- 1.21.4-1
- 1.21.5-1
- 1.21.6-1
- 1.21.7-1
- 1.21.7-2
- 1.21.8-1
- 1.21.8-1build1
- 1.21.9-1
- 1.21.9-1ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.22 Ubuntu:24.04:LTS
- Versions
- 1.22~rc1-2
- 1.22.0-1
- 1.22.0-2
- 1.22.1-1
- 1.22.1-1build1
- 1.22.2-2
- 1.22.2-2ubuntu0.1
- 1.22.2-2ubuntu0.2
- 1.22.2-2ubuntu0.3
- 1.22.2-2ubuntu0.4
- 1.22.2-2ubuntu0.5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.23 Ubuntu:24.04:LTS
- Versions
- 1.23.1-1~24.04
- 1.23.1-1~24.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.24 Ubuntu:24.04:LTS
- Versions
- 1.24.4-1ubuntu1~24.04.1
- 1.24.4-1ubuntu1~24.04.2
- 1.24.13-2~24.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.25 Ubuntu:24.04:LTS
- Versions
- 1.25.14-1~ubuntu0.24.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.23 Ubuntu:25.10
- Versions
- 1.23.8-1
- 1.23.10-1
- 1.23.10-1ubuntu0.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.24 Ubuntu:25.10
- Versions
- 1.24.2-1
- 1.24.2-2
- 1.24.4-1
- 1.24.4-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-1.23 Ubuntu:26.04:LTS
- Versions
- 1.23.10-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published