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

- Severity: High 8.6 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-07-29T21:02:00.000Z
- Modified: 2026-09-08T08:47:49.080Z
- Also known as: GO-2025-3828, BIT-GOLANG-2025-4674
- Related: CGA-q5c4-jwmf-whc2, RHSA-2025:13935, RHSA-2025:13936, RHSA-2025:13939, RHSA-2025:13940, RHSA-2025:13941, RHSA-2025:14093
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- cmd/go: before 1.23.11; from 1.24.0-0 before 1.24.5
- toolchain (Go): before 1.23.11; from 1.24.0-0 before 1.24.5
- golang go: before 1.23.11; from 1.24.0 before 1.24.5
- golang (Bitnami): before 1.23.11; from 1.24.0-0 before 1.24.5

## Every score

- CISA-ADP: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/686515> (fix, patch)
- <https://go.dev/issue/74380> (advisory, issue-tracking, report, third-party-advisory)
- <https://groups.google.com/g/golang-announce/c/gTNJnDXmn34> (discussion, mailing-list, release-notes, web)
- <https://pkg.go.dev/vuln/GO-2025-3828> (advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2025/07/08/5> (discussion, mailing-list, release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-4674> (web)

## Sources

- CVE List: [CVE-2025-4674](https://www.cve.org/CVERecord?id=CVE-2025-4674), CVE Terms of Use, modified 2025-11-04
- Go Vulnerability Database: [GO-2025-3828](https://pkg.go.dev/vuln/GO-2025-3828), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-4674](https://nvd.nist.gov/vuln/detail/CVE-2025-4674), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-4674](https://osv.dev/vulnerability/BIT-GOLANG-2025-4674), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-4674 · Whole record: https://cve.day/CVE-2025-4674.json · Rebuilt by cve.day 2026-11-25T22:59:01.857Z
