CVE-2025-68119
Last modified
CVE-2025-68119 is a high-severity vulnerability rated 7/10 on the CVSS scale. 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. EPSS estimates a 0.34% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.24.12 |
| Golang | Go | >= 1.25.0, < 1.25.6 |
References
- https://go.dev/issue/77099Issue Tracking, Patch
- https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUcMailing List, Release Notes
- https://pkg.go.dev/vuln/GO-2026-4338Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-68119?
How severe is CVE-2025-68119?
How do I fix CVE-2025-68119?
Are you affected by CVE-2025-68119?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
