CVE-2025-4674
cmd/go: Go VCS Command Execution Vulnerability
Overview
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.
Source: OX vulnerability database
Severity
8.6 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness: CWE-73
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | <1.23.11>=1.24.0-0, <1.24.5 | 1.23.111.24.5 |
Open a package to see all its vulnerabilities.
Operating systems · 155 fixes
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | delve | 1.24.1-1.0.1.module+el8.10.0+90602+3daf471e |
| 8 | go-toolset +6 | 1.24.6-1.module+el8.10.0+90641+f7c45302 |
| 9 | go-toolset +7 | 1.24.6-1.el9_6 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.26.3-1.ph5 |
Red Hat 2 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 8 (go-toolset:rhel8) | golang +6 | 0:1.19.13-16.module+el8.8.0+23410+958e78d9 | RHSA-2025:14093 |
| 8 (go-toolset:rhel8) | go-toolset | 0:1.19.13-3.module+el8.8.0+22903+37387f31 | RHSA-2025:14093 |
| 8 (go-toolset:rhel8) | delve | 0:1.24.1-1.module+el8.10.0+22945+b2c96a17 | RHSA-2025:13940 |
| 8 (go-toolset:rhel8) | go-toolset +6 | 0:1.24.6-1.module+el8.10.0+23407+428597c7 | RHSA-2025:13940 |
| 8 (go-toolset:rhel8) | delve | 0:1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2025:14093 |
| 9 | golang +6 | 0:1.19.13-18.el9_2 | RHSA-2025:13939 |
2 more rows
SUSE Linux Enterprise 4 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-23 +2 | 1.23.11-150000.1.37.1 | SUSE-SU-2025:02296-1 |
| 15.4 | go1-23-openssl +2 | 1.23.12-150000.1.18.1 | SUSE-SU-2025:02812-1 |
| 15.4 | go1-24 +2 | 1.24.5-150000.1.29.1 | SUSE-SU-2025:02295-1 |
| 15.4 | go1-24-openssl +2 | 1.24.6-150000.1.12.1 | SUSE-SU-2025:02837-1 |
| 15.4 | go1-25-openssl +2 | 1.25.0-150000.1.3.1 | SUSE-SU-2025:03115-1 |
| 15.4 | go1-25 +2 | 1.25.0-150000.1.5.1 | SUSE-SU-2025:02924-1 |
18 more rows
alma 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-docs +3 | 1.24.6-1.el10_0.alma.1 |
| 8 (go-toolset:rhel8) | delve | 1.24.1-1.module_el8.10.0+3977+66935a26 |
| 8 (go-toolset:rhel8) | go-toolset +6 | 1.24.6-1.module_el8.10.0+4033+4bf8b620 |
| 9 | go-toolset +7 | 1.24.6-1.el9_6 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.24.6-r0 |
| 3.23 | go | 1.24.5-r0 |
| 3.24 | go | 1.24.5-r0 |
| edge | go | 1.24.5-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.24.5-1.amzn2023.0.1 |
chainguard 1 release · 10 packages
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 | |
| newrelic-fluent-bit-output | 2.4.0-r5 | |
| nemo | 2.5.2-r2 | |
| nvidia-nsight-compute-12-8 | 2025.1.1.2-r8 | |
| nvidia-nsight-compute-12-9 | 2025.2.1.3-r8 | |
| nvidia-nsight-compute-13-0 | 2025.3.0.19-r2 |
4 more rows
debian 4 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
| 13 | golang-1-23 +1 | affected |
| 14 | golang-1-24 | 1.24.7-1 |
echo 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected | |
| golang-1-24 | 1.24.5 |
minimos 1 release · 76 packages
| Release | Package | Fixed in |
|---|---|---|
| pombump | 0.0.14-r2 | |
| cue | 0.13.2-r1 | |
| external-secrets-operator | 0.18.2-r1 | |
| nats | 0.2.4-r0 | |
| prometheus-alertmanager | 0.28.1-r3 | |
| atlantis | 0.35.0-r1 |
70 more rows
openSUSE 1 release · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | govulncheck-vulndb | 0.0.20250730T213748-1.1 | openSUSE-SU-2025:15405-1 |
| Tumbleweed | go1-23 +3 | 1.23.11-1.1 | openSUSE-SU-2025:15328-1 |
| Tumbleweed | go1-24 +3 | 1.24.5-1.1 | openSUSE-SU-2025:15329-1 |
| Tumbleweed | go1-25 +3 | 1.25rc2-1.1 | openSUSE-SU-2025:15330-1 |
rocky 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | go-toolset +7 | 1.24.6-1.el10_0 |
| 8 (go-toolset:rhel8) | delve | 1.24.1-1.module+el8.10.0+1951+c74bd827 |
| 8 (go-toolset:rhel8) | delve | 1.24.1-1.module+el8.10.0+1987+42f155bb |
| 8 (go-toolset:rhel8) | go-toolset +6 | 1.24.6-1.module+el8.10.0+2048+bc5b2e29 |
| 9 | go-toolset +7 | 1.24.6-1.el9_6 |
root.io debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
| 13 | golang-1-24 +1 | 1.24.4-1.root.io.16 |
ubuntu 5 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-18 | affected |
| 20.04-ESM | golang-1-18 +3 | affected |
| 22.04 | golang-1-18 +4 | affected |
| 24.04 | golang-1-21 +2 | affected |
| 26.04 | golang-1-23 | affected |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 | |
| newrelic-fluent-bit-output | 2.4.0-r5 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2025/07/08/5
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:13935
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:13940
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-4674
- bugzilla.redhat.com https://bugzilla.redhat.com/2384329
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2384329
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-4674
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-13935.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2025:13940
Show all 20 references
- github.com https://github.com/golang/go/commit/825eeee3f789a11231ce23a4836c74ec5e34bf2a (go1.24.5)
- github.com https://github.com/golang/go/commit/e9d2c032b14c17083be0f8f0c822565199d2994f (go1.23.11)
- go.dev https://go.dev/cl/686515
- go.dev https://go.dev/issue/74380
- groups.google.com https://groups.google.com/g/golang-announce/c/gTNJnDXmn34
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-4674.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-13941.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-4674
- pkg.go.dev https://pkg.go.dev/vuln/GO-2025-3828
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-4674
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.