CVE 8.6 HIGH

Unexpected command execution in untrusted VCS repositories in cmd/go_CVE-2025-4674

8.6 / 10
HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

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.

Basic Information

ID CVE-2025-4674
Source Go
Published Jul 29, 2025 at 21:19
Modified Aug 6, 2025 at 16:06

Affected Product

Vendor Go toolchain
Product cmd/go
Affected Versions Go toolchain cmd/go 0
Go toolchain cmd/go 1.24.0-0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.