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

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.

Published: 2025-07-29 Last update: 2026-01-29 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-4674 is rated Low Risk (35.4/100): CVSS High severity, with low exploitation likelihood (EPSS 0.02%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-4674

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-07-30 0.02%

Full EPSS history (1 record total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-4674

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.6 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 6.0 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2025-4674

OS Trackers for CVE-2025-4674

vendor priority summary link
alpine CVE-2025-4674: 1 source package rows (go); 79 state rows across 2 repos (3.22-community, edge-community); fixed 2, open 77. https://security.alpinelinux.org/vuln/CVE-2025-4674
debian not yet assigned CVE-2025-4674 not yet assigned priority: Debian including 3 source packages (golang-1.15, golang-1.19, golang-1.24), 3 status rows across 3 suites (bookworm, bullseye, trixie): open 3. https://security-tracker.debian.org/tracker/CVE-2025-4674
redhat high https://access.redhat.com/security/cve/CVE-2025-4674
suse high CVE-2025-4674 severity important: SUSE including 81 source package names (delve-1.24.1-1.module+el8.10.0+22945+b2c96a17, go, …), 382 product×package rows across 35 product lines (Container suse/sl-micro/6.0/baremetal-os-container, Container suse/sl-micro/6.0/base-os-container, … (35 product lines)): Fixed 348, Known Not Affected 34. https://www.suse.com/security/cve/CVE-2025-4674/
ubuntu medium CVE-2025-4674 medium priority: Ubuntu including 15 source packages (golang, golang-1.10, …), 93 status rows across 9 suites (bionic, focal, jammy, noble, plucky, questing, trusty, upstream, xenial): needs-triage 47, DNE 44, ignored 2. https://ubuntu.com/security/CVE-2025-4674

Affected software / configurations for CVE-2025-4674

Vendor Product Version Raw CPE
golang go < 1.23.11 cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
golang go >= 1.24.0, < 1.24.5 cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*

References for CVE-2025-4674

cvelogic Threat Intelligence