CVE-2025-4674
published high CVSS 3.1 · 8.6Unexpected command execution in untrusted VCS repositories in cmd/go
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Go toolchain | — | cmd/go0 to < 1.23.11 · 1.24.0-0 to < 1.24.5 · Other versions: unaffected | Affected | Not stated | Go |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2939 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1104 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | golang-docs | Advisory build | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| Alpine Linux | edge | go | Fixed | 1.24.5-r0 | Package fix record |
| Oracle Linux | 10 | go-toolsetaarch64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Red Hat Enterprise Linux | RHEL-10 | go-toolsetaarch64 | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| AlmaLinux | 10 | golang-misc | Advisory build | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 10 | golang-src | Advisory build | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux | 10 | golang-tests | Advisory build | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux | 8 | delve | Advisory build | 1.24.1-1.module_el8.10.0+3977+66935a26 | ALSA-2025:13940 |
| AlmaLinux | 8 | go-toolset | Advisory build | 1.24.6-1.module_el8.10.0+4033+4bf8b620 | ALSA-2025:13940 |
| AlmaLinux | 8 | golang | Advisory build | 1.24.6-1.module_el8.10.0+4033+4bf8b620 | ALSA-2025:13940 |
| AlmaLinux | 8 | golang-bin | Advisory build | 1.24.6-1.module_el8.10.0+4033+4bf8b620 | ALSA-2025:13940 |
| AlmaLinux | 8 | golang-docs | Advisory build | 1.24.6-1.module_el8.10.0+4033+4bf8b620 | ALSA-2025:13940 |
| AlmaLinux | 8 | golang-misc | Advisory build | 1.24.6-1.module_el8.10.0+4033+4bf8b620 | ALSA-2025:13940 |
| AlmaLinux | 8 | golang-src | Advisory build | 1.24.6-1.module_el8.10.0+4033+4bf8b620 | ALSA-2025:13940 |
| AlmaLinux | 8 | golang-tests | Advisory build | 1.24.6-1.module_el8.10.0+4033+4bf8b620 | ALSA-2025:13940 |
| AlmaLinux | 9 | go-toolset | Advisory build | 1.24.6-1.el9_6 | ALSA-2025:13935 |
| AlmaLinux | 9 | golang | Advisory build | 1.24.6-1.el9_6 | ALSA-2025:13935 |
| AlmaLinux | 9 | golang-bin | Advisory build | 1.24.6-1.el9_6 | ALSA-2025:13935 |
| AlmaLinux | 9 | golang-docs | Advisory build | 1.24.6-1.el9_6 | ALSA-2025:13935 |
| AlmaLinux | 9 | golang-misc | Advisory build | 1.24.6-1.el9_6 | ALSA-2025:13935 |
| AlmaLinux | 9 | golang-race | Advisory build | 1.24.6-1.el9_6 | ALSA-2025:13935 |
| AlmaLinux | 9 | golang-src | Advisory build | 1.24.6-1.el9_6 | ALSA-2025:13935 |
| AlmaLinux | 9 | golang-tests | Advisory build | 1.24.6-1.el9_6 | ALSA-2025:13935 |
| Alpine Linux | v3.22 | go | Fixed | 1.24.6-r0 | Package fix record |
| Alpine Linux | v3.23 | go | Fixed | 1.24.5-r0 | Package fix record |
| Alpine Linux | v3.24 | go | Fixed | 1.24.5-r0 | Package fix record |
| Oracle Linux | 10 | go-toolsetx86_64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golangaarch64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golangx86_64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-binaarch64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-binx86_64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-docsaarch64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-docsx86_64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-miscaarch64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-miscx86_64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-raceaarch64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-racex86_64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-srcaarch64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-srcx86_64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-testsaarch64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 10 | golang-testsx86_64 | Advisory build | 0:1.24.6-1.el10_0 | ELSA-2025-13941 |
| Oracle Linux | 8 | delveaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.1-1.0.1.module+el8.10.0+90602+3daf471e | ELSA-2025-13940 |
| Oracle Linux | 8 | delvex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.1-1.0.1.module+el8.10.0+90602+3daf471e | ELSA-2025-13940 |
| Oracle Linux | 8 | go-toolsetaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | go-toolsetx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golangaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golangx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-binaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-binx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-docsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-docsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-miscaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-miscx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-srcaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-srcx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-testsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 8 | golang-testsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.24.6-1.module+el8.10.0+90641+f7c45302 | ELSA-2025-13940 |
| Oracle Linux | 9 | go-toolsetaarch64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | go-toolsetx86_64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golangaarch64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golangx86_64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-binaarch64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-binx86_64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-docsaarch64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-docsx86_64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-miscaarch64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-miscx86_64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-raceaarch64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-racex86_64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-srcaarch64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-srcx86_64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-testsaarch64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Oracle Linux | 9 | golang-testsx86_64 | Advisory build | 0:1.24.6-1.el9_6 | ELSA-2025-13935 |
| Red Hat Enterprise Linux | RHEL-10 | go-toolsetppc64le | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | go-toolsets390x | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | go-toolsetx86_64 | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golangaarch64 | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golangppc64le | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golangs390x | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golangsrc | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golangx86_64 | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-binaarch64 | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-binppc64le | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-bins390x | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-binx86_64 | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-docsnoarch | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-miscnoarch | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-raceaarch64 | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-raceppc64le | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-races390x | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-racex86_64 | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-srcnoarch | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-10 | golang-testsnoarch | Advisory build | 1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux | RHEL-8 | delveaarch64 | Advisory build | 1.24.1-1.module+el8.10.0+22945+b2c96a17 | RHSA-2025:13940 |
| Red Hat Enterprise Linux | RHEL-8 | delveppc64le | Advisory build | 1.24.1-1.module+el8.10.0+22945+b2c96a17 | RHSA-2025:13940 |
| Red Hat Enterprise Linux | RHEL-8 | delvesrc | Advisory build | 1.24.1-1.module+el8.10.0+22945+b2c96a17 | RHSA-2025:13940 |
| Red Hat Enterprise Linux | RHEL-8 | delvesrc | Advisory build | 1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2025:14093 |
| Red Hat Enterprise Linux | RHEL-8 | delvex86_64 | Advisory build | 1.24.1-1.module+el8.10.0+22945+b2c96a17 | RHSA-2025:13940 |
| Red Hat Enterprise Linux | RHEL-8 | delvex86_64 | Advisory build | 1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2025:14093 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debuginfoaarch64 | Advisory build | 1.24.1-1.module+el8.10.0+22945+b2c96a17 | RHSA-2025:13940 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Go toolchain | cmd/go | 0 to < 1.23.11 (affected · semver)1.24.0-0 to < 1.24.5 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
2- CWE-73 CWE-73: External Control of File Name or Path
- CWE-73 CWE-73 External Control of File Name or Path
References
5Provider assertions
3Go · cna
Unexpected command execution in untrusted VCS repositories in cmd/go
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ba79fd1134abe7e8e346bacb83d71008ff5a1df474c5d7d38f2cceb0268b7fbd
- Ingested
- 23 Sep 2026, 08:51:56 UTC
- Source record
- Official CVE record