Skip to content
Fencer Intel
high 8.6

CVE-2025-4674 json

Unexpected command execution in untrusted VCS repositories in cmd/go

published last yr. modified 2mo ago also BIT-golang-2025-4674 , EUVD-2025-23047 , GO-2025-3828

cvss
8.6
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 41%
public exploits
0
none known

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.

Patch / fix

  • bitnami golang 1.23.11, 1.24.5
  • go toolchain 1.23.11, 1.24.5
  • Go toolchain cmd/go 1.23.11, 1.24.5
  • delve RHEL 8 1.24.1-1.module+el8.10.0+22945+b2c96a17
  • golang RHEL 8 1.24.6-1.module+el8.10.0+23407+428597c7
  • go-toolset RHEL 8 1.24.6-1.module+el8.10.0+23407+428597c7
  • golang-bin RHEL 8 1.24.6-1.module+el8.10.0+23407+428597c7
  • golang-src RHEL 8 1.24.6-1.module+el8.10.0+23407+428597c7
  • golang-misc RHEL 8 1.24.6-1.module+el8.10.0+23407+428597c7
  • golang-tests RHEL 8 1.24.6-1.module+el8.10.0+23407+428597c7
  • golang RHEL 10.0 1.24.6-1.el10_0

red hat advisories RHSA-2025:14093RHSA-2025:13940RHSA-2025:13941RHSA-2025:13936RHSA-2025:13939RHSA-2025:13935

  • go1.25-openssl SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Development Tools 15 SP7 +1 more 1.25.6-150600.13.9.1
  • go1.25-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 1.25.6-150000.1.9.1
  • go1.25-openssl SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.25.0-150600.13.3.1
  • go1.23-openssl SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.23.12-150600.13.9.1
  • go1.24-openssl SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.24.6-150600.13.9.1
  • go1.25-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +9 more 1.25.0-150000.1.3.1
  • go1.25 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 1.25.0-150000.1.5.1
  • go1.24-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +9 more 1.24.6-150000.1.12.1

suse advisories SUSE-SU-2026:0298-1SUSE-SU-2026:0297-1SUSE-SU-2025:03161-1SUSE-SU-2025:03159-1SUSE-SU-2025:03158-1SUSE-SU-2025:03115-1

  • govulncheck-vulndb openSUSE Tumbleweed 0.0.20250730T213748-1.1
  • go1.23 openSUSE Tumbleweed 1.23.11-1.1
  • go1.24 openSUSE Tumbleweed 1.24.5-1.1
  • go1.25 openSUSE Tumbleweed 1.25rc2-1.1

opensuse advisories openSUSE-SU-2025:15405-1openSUSE-SU-2025:15328-1openSUSE-SU-2025:15329-1openSUSE-SU-2025:15330-1

  • golang AlmaLinux 9 1.24.6-1.el9_6
  • go-toolset AlmaLinux 9 1.24.6-1.el9_6
  • golang-bin AlmaLinux 9 1.24.6-1.el9_6
  • golang-src AlmaLinux 9 1.24.6-1.el9_6
  • golang-misc AlmaLinux 9 1.24.6-1.el9_6
  • golang-race AlmaLinux 9 1.24.6-1.el9_6
  • golang-tests AlmaLinux 9 1.24.6-1.el9_6
  • delve AlmaLinux 8 1.24.1-1.module_el8.10.0+3977+66935a26

almalinux advisories ALSA-2025:13935ALSA-2025:13940ALSA-2025:13941

  • golang Rocky Linux 9 1.24.6-1.el9_6
  • golang Rocky Linux 10 1.24.6-1.el10_0
  • delve Rocky Linux 8 1.24.1-1.module+el8.10.0+1951+c74bd827
  • delve Rocky Linux 8 1.24.1-1.module+el8.10.0+1987+42f155bb
  • golang Rocky Linux 8 1.24.6-1.module+el8.10.0+2048+bc5b2e29
  • go-toolset Rocky Linux 8 1.24.6-1.module+el8.10.0+2048+bc5b2e29

rocky linux advisories RLSA-2025:13935RLSA-2025:13941RLSA-2025:13940

  • go Alpine 3.22 1.24.6-r0
  • go Alpine 3.24, Alpine 3.23 1.24.5-r0

alpine advisories ALPINE-CVE-2025-4674

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • golang CBL-Mariner 2.0 1.18.8-10
  • golang CBL-Mariner 2.0 1.22.7-5

azure linux advisories AZL-66098AZL-66101

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2025-4674 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-4674 updated cvss 8.6

cmd/go: Go VCS Command Execution Vulnerability

  • Red Hat Enterprise Linux AppStream (v. 8) delve 1.24.1-1.module+el8.10.0+22945+b2c96a17, golang 1.24.6-1.module+el8.10.0+23407+428597c7, go-toolset 1.24.6-1.module+el8.10.0+23407+428597c7, golang-bin 1.24.6-1.module+el8.10.0+23407+428597c7, golang-src 1.24.6-1.module+el8.10.0+23407+428597c7, golang-misc 1.24.6-1.module+el8.10.0+23407+428597c7, +1 more
    fixed: vendor fix RHSA-2025:13940
  • Red Hat Enterprise Linux AppStream (v. 9) golang 1.24.6-1.el9_6, go-toolset 1.24.6-1.el9_6, golang-bin 1.24.6-1.el9_6, golang-src 1.24.6-1.el9_6, golang-misc 1.24.6-1.el9_6, golang-race 1.24.6-1.el9_6, +1 more
    fixed: vendor fix RHSA-2025:13935
  • Red Hat Enterprise Linux AppStream (v. 10) golang 1.24.6-1.el10_0, go-toolset 1.24.6-1.el10_0, golang-bin 1.24.6-1.el10_0, golang-src 1.24.6-1.el10_0, golang-misc 1.24.6-1.el10_0, golang-race 1.24.6-1.el10_0, +1 more
    fixed: vendor fix RHSA-2025:13941
  • Red Hat Enterprise Linux AppStream E4S (v.8.8) delve 1.9.1-1.module+el8.8.0+16778+5fbb74f5, golang 1.19.13-16.module+el8.8.0+23410+958e78d9, go-toolset 1.19.13-3.module+el8.8.0+22903+37387f31, golang-bin 1.19.13-16.module+el8.8.0+23410+958e78d9, golang-src 1.19.13-16.module+el8.8.0+23410+958e78d9, golang-misc 1.19.13-16.module+el8.8.0+23410+958e78d9, +2 more
    fixed: vendor fix RHSA-2025:14093
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) golang 1.19.13-18.el9_2, golang-bin 1.19.13-18.el9_2, golang-src 1.19.13-18.el9_2, golang-misc 1.19.13-18.el9_2, golang-race 1.19.13-18.el9_2, golang-tests 1.19.13-18.el9_2
    fixed: vendor fix RHSA-2025:13939
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) golang 1.21.13-10.el9_4, go-toolset 1.21.13-10.el9_4, golang-bin 1.21.13-10.el9_4, golang-src 1.21.13-10.el9_4, golang-misc 1.21.13-10.el9_4, golang-tests 1.21.13-10.el9_4
    fixed: vendor fix RHSA-2025:13936
  • Red Hat Enterprise Linux AppStream TUS (v.8.8) delve 1.9.1-1.module+el8.8.0+16778+5fbb74f5, golang 1.19.13-16.module+el8.8.0+23410+958e78d9, go-toolset 1.19.13-3.module+el8.8.0+22903+37387f31, golang-bin 1.19.13-16.module+el8.8.0+23410+958e78d9, golang-src 1.19.13-16.module+el8.8.0+23410+958e78d9, golang-misc 1.19.13-16.module+el8.8.0+23410+958e78d9, +2 more
    fixed: vendor fix RHSA-2025:14093

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
last yr.

Exploit prediction

0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.6 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CNA 3.1 8.6 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
OSV 3.1 8.6 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami golang
<1.23.11
>=1.24.0-0, <1.24.5
1.23.11
1.24.5
go toolchain
<1.23.11
>=1.24.0-0, <1.24.5
1.23.11
1.24.5

Affected products

  • Go toolchain cmd/go

Classification

Weakness
  • CWE-73 External Control of File Name or Path

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.