Skip to content

CVE-2025-4674 Unexpected command execution in untrusted VCS repositories in cmd/go

HighCVSS 8.6 EPSS 0.48%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

18 packages: 6 fixed, 1 partially fixed, 11 with no fix yet.

PackageAffectedFixed inStatus
debian/golang-1.19(Debian 12) = 1.19.8-2; = 1.19.9-1; = 1.19.10-1; = 1.19.10-2 +9 more No fix listed No fix yet
debian/golang-1.24(Debian 13) = 1.24.4-1; = 1.24.4-2; = 1.24.4-3; = 1.24.4-4 +7 more No fix listed No fix yet
ubuntu/golang-1.18(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/golang-1.20(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/golang-1.21(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/golang-1.21(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/golang-1.22(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/golang-1.22(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/golang-1.23(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/golang-1.23(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/golang-1.23(Ubuntu 26.04) All versions No fix listed No fix yet
cbl-mariner golang(CBL-Mariner 2.0) < 1.18.8-10; < 1.22.7-5; All versions 1.18.8-10, 1.22.7-5 Partially fixed
alpine/go(Alpine v3.22) >= 1.24.0, < 1.24.6-r0 1.24.6-r0 Fixed
alpine/go(Alpine v3.23) >= 1.24.0, < 1.24.5-r0 1.24.5-r0 Fixed
alpine/go(Alpine v3.24) >= 1.24.0, < 1.24.5-r0 1.24.5-r0 Fixed
cmd/go(Go) < 1.23.11; >= 1.24.0-0, < 1.24.5 1.23.11, 1.24.5 Fixed
golang go < 1.23.11; >= 1.24.0, < 1.24.5 1.23.11, 1.24.5 Fixed
toolchain(Go) < 1.23.11; >= 1.24.0-0, < 1.24.5 1.23.11, 1.24.5 Fixed

Affected products

ProductAffected versionsFixed in
toolchain(Go) < 1.23.11 1.23.11
toolchain(Go) >= 1.24.0-0, < 1.24.5 1.24.5
cbl-mariner golang(CBL-Mariner:2.0) < 1.22.7-5 1.22.7-5
cbl-mariner golang(CBL-Mariner:2.0) All versions No fix listed
cbl-mariner golang(CBL-Mariner:2.0) < 1.18.8-10 1.18.8-10
debian/golang-1.19(Debian:12) All versions No fix listed
debian/golang-1.19(Debian:12) = 1.19.10-1 No fix listed
debian/golang-1.19(Debian:12) = 1.19.10-2 No fix listed
debian/golang-1.19(Debian:12) = 1.19.11-1 No fix listed
debian/golang-1.19(Debian:12) = 1.19.12-1 No fix listed
debian/golang-1.19(Debian:12) = 1.19.12-2 No fix listed
debian/golang-1.19(Debian:12) = 1.19.12-2~bpo11+1 No fix listed
debian/golang-1.19(Debian:12) = 1.19.12-2~bpo12+1 No fix listed
debian/golang-1.19(Debian:12) = 1.19.13-1 No fix listed
debian/golang-1.19(Debian:12) = 1.19.13-1~bpo11+1 No fix listed
debian/golang-1.19(Debian:12) = 1.19.13-1~bpo12+1 No fix listed
debian/golang-1.19(Debian:12) = 1.19.8-2 No fix listed
debian/golang-1.19(Debian:12) = 1.19.9-1 No fix listed
debian/golang-1.24(Debian:13) All versions No fix listed
debian/golang-1.24(Debian:13) = 1.24.12-1 No fix listed
debian/golang-1.24(Debian:13) = 1.24.13-1 No fix listed
debian/golang-1.24(Debian:13) = 1.24.13-2 No fix listed
debian/golang-1.24(Debian:13) = 1.24.4-1 No fix listed
debian/golang-1.24(Debian:13) = 1.24.4-2 No fix listed
debian/golang-1.24(Debian:13) = 1.24.4-3 No fix listed
Show 20 more
ProductAffected versionsFixed in
debian/golang-1.24(Debian:13) = 1.24.4-4 No fix listed
debian/golang-1.24(Debian:13) = 1.24.7-1 No fix listed
debian/golang-1.24(Debian:13) = 1.24.8-1 No fix listed
debian/golang-1.24(Debian:13) = 1.24.9-1 No fix listed
cmd/go(Go) < 1.23.11 1.23.11
cmd/go(Go) >= 1.24.0-0, < 1.24.5 1.24.5
ubuntu/golang-1.18(Ubuntu:22.04) All versions No fix listed
ubuntu/golang-1.20(Ubuntu:22.04) All versions No fix listed
ubuntu/golang-1.21(Ubuntu:22.04) All versions No fix listed
ubuntu/golang-1.22(Ubuntu:22.04) All versions No fix listed
ubuntu/golang-1.23(Ubuntu:22.04) All versions No fix listed
alpine/go(Alpine:v3.22) >= 1.24.0, < 1.24.6-r0 1.24.6-r0
alpine/go(Alpine:v3.23) >= 1.24.0, < 1.24.5-r0 1.24.5-r0
alpine/go(Alpine:v3.24) >= 1.24.0, < 1.24.5-r0 1.24.5-r0
ubuntu/golang-1.21(Ubuntu:24.04) All versions No fix listed
ubuntu/golang-1.22(Ubuntu:24.04) All versions No fix listed
ubuntu/golang-1.23(Ubuntu:24.04) All versions No fix listed
ubuntu/golang-1.23(Ubuntu:26.04) All versions No fix listed
golang go < 1.23.11 1.23.11
golang go >= 1.24.0, < 1.24.5 1.24.5

References