CVE-2025-4674: Golang 1.18 · The go command may execute unexpected commands when operating in untrusted VCS repositories
Affects golang-1.18Source GCVE Database
Not known to be exploited · CVSS 8.6 High.
Data as of 5 Nov 2026, 00:01 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 8.6 |
|---|
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSgolang-1.23pkg:deb/ubuntu/golang-1.23?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-1.23pkg:deb/ubuntu/golang-1.23?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgolang-1.21pkg:deb/ubuntu/golang-1.21?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgolang-1.22pkg:deb/ubuntu/golang-1.22?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgolang-1.23pkg:deb/ubuntu/golang-1.23?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is confirmed, avoid operating the go command in untrusted VCS repositories that may contain metadata for multiple VCS types.
Description
A vulnerability in Golang 1.18 allows the go command to execute unexpected commands when working with untrusted version control system (VCS) repositories that contain potentially dangerous VCS metadata. This issue arises when a repository fetched via one VCS contains metadata for another VCS, potentially leading to command execution. Modules retrieved via the 'go get' command are not affected. The vulnerability has a high severity with a CVSS score of 8.6.
References
- ubuntu.com/security/CVE-2025-4674 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-4674 (opens in a new tab)
- groups.google.com/g/golang-announce/c/gTNJnDXmn34 (opens in a new tab)
- github.com/golang/go/commit/825eeee3f789a11231ce23a4836c74ec5e34bf2a (opens in a new tab)
- github.com/golang/go/commit/e9d2c032b14c17083be0f8f0c822565199d2994f (opens in a new tab)