CVE-2025-68119
cmd/go: cmd/go: Local code execution and arbitrary file write via malicious module version strings
Overview
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.
Source: OX vulnerability database
Severity
7 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-787
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | >=1.25.0, <1.25.6 | 1.25.6 |
Open a package to see all its vulnerabilities.
Operating systems · 1,328 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | golang | 0:1.25.6-1.azl3 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.24.13-1.ph5 |
Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | go-toolset +7 | eol |
| 9 | go-toolset +7 | affected |
SUSE Linux Enterprise 5 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-24-openssl +2 | 1.24.12-150000.1.18.1 | SUSE-SU-2026:0296-1 |
| 15.4 | go1-24 +2 | 1.24.12-150000.1.53.1 | SUSE-SU-2026:0219-1 |
| 15.4 | go1-25 +2 | 1.25.6-150000.1.26.1 | SUSE-SU-2026:0218-1 |
| 15.4 | go1-25-openssl +2 | 1.25.6-150000.1.9.1 | SUSE-SU-2026:0297-1 |
| 15.5 | go1-24-openssl +2 | 1.24.12-150000.1.18.1 | SUSE-SU-2026:0296-1 |
| 15.5 | go1-24 +2 | 1.24.12-150000.1.53.1 | SUSE-SU-2026:0219-1 |
14 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.24.12-r0 |
| 3.23 | go | 1.25.6-r0 |
| 3.24 | go | 1.25.6-r0 |
| edge | go | 1.25.6-r0 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.24.12-1.amzn2023.0.1 |
| 2023 | amazon-ssm-agent | 3.3.3883.0-1.amzn2023 |
chainguard 1 release · 732 packages
| Release | Package | Fixed in |
|---|---|---|
| scanner-test-golang-vulnerability-fixed | 0.0.1-r1 | |
| qemu-guesthelper | 0.0.1-r7 | |
| kube-vip-cloud-provider-0-0-10 | 0.0.10-r8 | |
| kube-vip-cloud-provider | 0.0.12-r8 | |
| stakater-reloader-0-0-128 | 0.0.128-r28 | |
| local-path-provisioner +1 | 0.0.34-r1 |
726 more rows
debian 4 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
| 13 | golang-1-24 | affected |
| 14 | golang-1-24 | affected |
echo 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected | |
| golang-1-24 | 1.24.12 |
minimos 1 release · 260 packages
| Release | Package | Fixed in |
|---|---|---|
| pombump | 0.0.16-r4 | |
| tw | 0.0.36-r0 | |
| cargobump | 0.1.0-r5 | |
| grype | 0.105.0-r0 | |
| falcoctl +1 | 0.12.0-r0 | |
| kserve-modelmesh-runtime-adapter-fips | 0.12.0-r4 |
254 more rows
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | coredns +1 | 1.14.1-1.1 | openSUSE-SU-2026:10101-1 |
| Tumbleweed | go1-24 +3 | 1.24.12-1.1 | openSUSE-SU-2026:10063-1 |
| Tumbleweed | go1-25 +3 | 1.25.6-1.1 | openSUSE-SU-2026:10064-1 |
openSUSE Leap 1 release · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | coredns +1 | 1.14.2-bp160.1.1 | openSUSE-SU-2026:20619-1 |
| 16.0 | go1-24 +3 | 1.24.12-160000.1.1 | openSUSE-SU-2026:20077-1 |
| 16.0 | go1-24-openssl +2 | 1.24.13-160000.1.1 | openSUSE-SU-2026:20308-1 |
| 16.0 | go1-25 +3 | 1.25.6-160000.1.1 | openSUSE-SU-2026:20085-1 |
| 16.0 | go1-25-openssl +2 | 1.25.7-160000.1.1 | openSUSE-SU-2026:20301-1 |
root.io debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
| 13 | golang-1-24 +1 | 1.24.4-1.root.io.19 |
wolfi 1 release · 290 packages
| Release | Package | Fixed in |
|---|---|---|
| kube-vip-cloud-provider | 0.0.12-r8 | |
| local-path-provisioner | 0.0.34-r1 | |
| sbom-scorecard | 0.0.7-r26 | |
| sbom-convert | 0.0.7-r7 | |
| gke-gcloud-auth-plugin | 0.1.0-r12 | |
| cargobump | 0.1.0-r9 |
284 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-68119
- go.dev https://go.dev/cl/736710
- go.dev https://go.dev/issue/77099
- groups.google.com https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-68119
- pkg.go.dev https://pkg.go.dev/vuln/GO-2026-4338
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-68119
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.