Skip to content
Fencer Vulns
high 7.0

CVE-2025-68119 json

Unexpected code execution when invoking toolchain in cmd/go

published 2026-01-28 9 mo ago modified 2026-09-08 2 mo ago also BIT-golang-2025-68119 , EUVD-2025-206446 , GO-2026-4338

cvss
7.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 31%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami golang 1.25.6
  • go toolchain 1.25.6
  • Go toolchain cmd/go 1.25.6
  • golang1.25 hummingbird 1 1.25.9-1.hum1
  • golang1.25-bin hummingbird 1 1.25.9-1.hum1
  • golang1.25-src hummingbird 1 1.25.9-1.hum1
  • golang1.25-misc hummingbird 1 1.25.9-1.hum1
  • golang1.25-tests hummingbird 1 1.25.9-1.hum1
  • golang1.25-shared hummingbird 1 1.25.9-1.hum1
  • golang1.26 hummingbird 1 1.26.2-1.hum1
  • golang1.26-bin hummingbird 1 1.26.2-1.hum1

red hat advisories RHSA-2026:7385RHSA-2026:7291

  • go1.24-openssl SLES for SAP applications 16.0, SLES 16.0 1.24.13-160000.1.1
  • go1.24-openssl SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Development Tools 15 SP7 +1 more 1.24.13-150600.13.18.1
  • go1.25-openssl SLES for SAP applications 16.0, SLES 16.0 1.25.7-160000.1.1
  • go1.24-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 1.24.13-150000.1.23.1
  • go1.24 SLES for SAP applications 16.0, SLES 16.0 1.24.13-160000.1.1
  • go1.24 SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +9 more 1.24.13-150000.1.56.1
  • govulncheck-vulndb openSUSE Leap 15.6 0.0.20260128T190828-150000.1.143.1
  • go1.24-openssl SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Development Tools 15 SP7 +1 more 1.24.12-150600.13.15.1

suse advisories SUSE-SU-2026:20629-1SUSE-SU-2026:0789-1SUSE-SU-2026:20623-1SUSE-SU-2026:0687-1SUSE-SU-2026:20429-1SUSE-SU-2026:0426-1

  • govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
  • coredns openSUSE Leap 16.0 1.14.2-bp160.1.1
  • go1.24-openssl openSUSE Leap 16.0 1.24.13-160000.1.1
  • go1.25-openssl openSUSE Leap 16.0 1.25.7-160000.1.1
  • go1.24 openSUSE Leap 16.0 1.24.13-160000.1.1
  • coredns openSUSE Tumbleweed 1.14.1-1.1
  • go1.25 openSUSE Leap 16.0 1.25.6-160000.1.1
  • go1.24 openSUSE Leap 16.0 1.24.12-160000.1.1

opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2026:20619-1openSUSE-SU-2026:20308-1openSUSE-SU-2026:20301-1openSUSE-SU-2026:20220-1openSUSE-SU-2026:10101-1

  • go Alpine 3.22 1.24.12-r0
  • go Alpine 3.24, Alpine 3.23 1.25.6-r0

alpine advisories ALPINE-CVE-2025-68119

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • msft-golang CBL-Mariner 2.0 1.24.12-1
  • golang Azure Linux 3.0 1.24.12-1
  • golang Azure Linux 3.0 1.25.6-1

azure linux advisories AZL-75639AZL-75698AZL-75728

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-68119 updated cvss 6.7

cmd/go: cmd/go: Local code execution and arbitrary file write via malicious module version strings

  • Red Hat Enterprise Linux 8 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more
    affected: workaround, no fix planned “No mitigation is currently available that meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.”
  • Red Hat Enterprise Linux 9 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat Enterprise Linux 10 golang
    affected: workaround, no fix available “No mitigation is currently available that meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.”
  • Red Hat Hardened Images golang1.25 1.25.9-1.hum1, golang1.26 1.26.2-1.hum1, golang1.25-bin 1.25.9-1.hum1, golang1.25-src 1.25.9-1.hum1, golang1.26-bin 1.26.2-1.hum1, golang1.26-src 1.26.2-1.hum1, +6 more
    fixed: vendor fix “No mitigation is currently available that meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.” RHSA-2026:7385

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
9 mo ago

Exploit prediction

0.38% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami golang
>=1.25.0, <1.25.6
1.25.6
go toolchain
>=1.25.0, <1.25.6
1.25.6

Affected products

  • Go toolchain cmd/go

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.