🛡️ CVE-2025-4674 — go

🟠 CVSS 8.6 — High ✅ No Known Exploit CWE-73 NVD
8.6
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2025-4674 is classified as CWE-73: External Control of File Name or Path. A caller can influence which file the application opens or writes, extending an operation to files that were never meant to be reachable.

Affected software

CVE-2025-4674 is recorded against 3 packages.

  • go (from 1.24.0 up to 1.24.5)
  • golang
  • toolchain

Timeline and source

Published on 29 July 2025 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

go.dev
go.dev
groups.google.com
pkg.go.dev
www.openwall.com

CVE-2025-4674 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity HIGH
CVSS Score 8.6
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CWE CWE-73
Public Exploit ✅ No
Source NVD
Published 2025-07-29
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
go 1.24.0 1.24.5
golang
toolchain

References

Site Security Check

Is go part of your stack?

CVE-2025-4674 is rated CVSS 8.6 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.