CVE-2025-68119: Go toolchain cmd/go · OS Command Injection
Affects Go toolchain cmd/goSource CVE Database V5
Not known to be exploited · CVSS 7.0 High : upgrade to 1.25.6 soon.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.25.6
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 28 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Upgrade Go toolchain cmd/go to 1.25.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Go toolchaincmd/go | Affected
| Fixed in
|
Gocmd/gopkg:golang/cmd/goOther 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
1. Avoid using non-standard or custom module sources unless absolutely necessary and ensure they are from trusted origins. 2. Do not explicitly specify version strings in module downloads unless verified and sanitized. 3. 4. Implement strict input validation and sanitization for version strings in internal tooling or scripts that invoke cmd/go. 5. Restrict or remove Mercurial and Git from build environments where not required to reduce attack surface. 6. Use containerized or isolated build environments to limit the impact of potential local code execution. 7. Monitor build logs and filesystem changes for unexpected behavior during module downloads. 8. Educate developers about the risks of using untrusted module versions and enforce policies for module provenance verification. 9. Employ runtime security tools to detect anomalous command executions or file writes during builds. 10. Consider using reproducible builds and cryptographic verification of module sources to prevent tampering.
Description
Downloading and building modules with malicious version strings can cause local code execution. On systems with Mercurial (hg) installed, downloading modules from non-standard sources (e.g., custom domains) can cause unexpected code execution due to how external VCS commands are constructed. This issue can also be triggered by providing a malicious version string to the toolchain. On systems with Git installed, downloading and building modules with malicious version strings can allow an attacker to write to arbitrary files on the filesystem. This can only be triggered by explicitly providing the malicious version strings to the toolchain and does not affect usage of @latest or bare module paths.