CVE-2025-4674

CVE-2025-4674 is a high-severity vulnerability in Golang Go with a CVSS 3.x base score of 8.6. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-73.

Key facts

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.

Frequently asked questions

What is CVE-2025-4674?
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 severe is CVE-2025-4674?
CVE-2025-4674 has a CVSS 3.x base score of 8.6, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2025-4674 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (19th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-4674?
CVE-2025-4674 affects Golang Go. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-4674?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2025-4674 have an EU (EUVD) identifier?
Yes. CVE-2025-4674 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-23047.
When was CVE-2025-4674 published?
CVE-2025-4674 was published on 2025-07-29 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Golang Go

All CVEs affecting Golang Go →

Other CWE-73 vulnerabilities

Browse all CWE-73 vulnerabilities →