Skip to main content
VulnerabilityPublished Updated

CVE-2025-4674: The go command may execute unexpected commands when operating in untrusted VCS repositories

Source GCVE Database

0
Compare
Authoritative record:CVE-2025-4674· High 8.6

Not known to be exploited · CVSS 8.6 High.

Data as of 4 Nov 2026, 17:56 UTC

CVSS 3.1 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CISA-ADPCVSS 3.18.6
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 4 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Gogithub.com/golang/go/cmd/gopkg:golang/github.com/golang/go/cmd/goOther threatsAffected
  • =0
  • =1.24.0-0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Users should avoid operating the go command in untrusted VCS repositories containing mixed VCS metadata until a fix is available.

Description

CVE-2025-4674 is a high-severity vulnerability in the go command where it may execute unexpected commands when operating in untrusted version control system (VCS) repositories. This occurs if a repository fetched by one VCS contains metadata for another VCS, potentially leading to command execution. Modules retrieved via "go get" are not affected.

References

Community reviews

Loading reviews…