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

Source: https://junglewise.ai/threats/cve-2025-4674-go-2025-3828-unexpected-command-execution-in-untrusted-vcs  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-07-29  
License: CC BY 4.0 with a link back

CVE-2025-4674 · Severity: info · Published 2025-07-29

Unexpected command execution in untrusted VCS repositories in cmd/go

Technologies: [toolchain (Go)](https://junglewise.ai/threats/technologies/toolchain). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2025-4674 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-4674 being exploited in the wild.

**How severe is CVE-2025-4674?** Informational severity, published 29 July 2025.

**Which products and versions are affected?** toolchain (Go) SEMVER:introduced=0,fixed=1.23.11,introduced=1.24.0-0,fixed=1.24.5.

**Is there a fix for CVE-2025-4674?** Yes. toolchain (Go): upgrade to 1.24.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-4674?** Check whether you run toolchain (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- toolchain (Go): upgrade to 1.24.5 or later

  ```sh
  go get toolchain@v1.24.5
  ```


## Affected products

- toolchain (Go) SEMVER:introduced=0,fixed=1.23.11,introduced=1.24.0-0,fixed=1.24.5

## Identifiers

- CVE-2025-4674
- GO-2025-3828

## Related threats

- [Go cgo LDFLAGS validation bypass in cmd/cgo](https://junglewise.ai/threats/cve-2026-97043-building-a-malicious-package-that-uses-cgo-could-bypass-cgo)
- [Go compiler unsafe library path validation in Windows linker](https://junglewise.ai/threats/cve-2026-97042-building-a-malicious-package-that-uses-go-cgo-import-dynamic-or)
- [Go compiler cgo linker flag injection via directives](https://junglewise.ai/threats/cve-2026-97041-building-a-malicious-package-containing-go-cgo-compiler)
- [Go linker arbitrary flag injection via crafted .syso files](https://junglewise.ai/threats/cve-2026-97040-building-a-package-containing-a-crafted-syso-file-could-bypass)
- [Go command unsafe pkg-config flag handling in cgo](https://junglewise.ai/threats/cve-2026-97039-building-a-malicious-package-that-uses-cgo-pkg-config-directives)
