CVEfocus › CVE database › CVE-2025-68119

CVE-2025-68119Unexpected code execution when invoking toolchain in cmd/go

CVSS 7.0 HighEPSS 0.3% (higher than 14% of CVEs)Published 2026-01-28Updated 2026-11-23Assigner: Go

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.

What to do

Fixed builds are available from Alpine, Go: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
37Fix pending
16Under investigation
11Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Under investigationUBUNTU-CVE-2025-68119
Ubuntu 26.04golang-1.24Under investigationUBUNTU-CVE-2025-68119
Ubuntu 26.04golang-1.25Under investigationUBUNTU-CVE-2025-68119
Ubuntu 25.10golang-1.23Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2025-68119
Ubuntu 25.10golang-1.24Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2025-68119
Ubuntu 25.10golang-1.25Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2025-68119
Ubuntu 24.04golang-1.21Under investigationUBUNTU-CVE-2025-68119
Ubuntu 24.04golang-1.22Under investigationUBUNTU-CVE-2025-68119
Ubuntu 24.04golang-1.23Under investigationUBUNTU-CVE-2025-68119
Ubuntu 24.04golang-1.24Under investigationUBUNTU-CVE-2025-68119
Ubuntu 24.04golang-1.25Under investigationUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.17Under investigationUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.20Under investigationUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.21Under investigationUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.22Under investigationUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.23Under investigationUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.24Under investigationUBUNTU-CVE-2025-68119
Ubuntu 22.04golang-1.25Under investigationUBUNTU-CVE-2025-68119
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 20.04golang-1.21Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 20.04golang-1.22Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2025-68119
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2025-68119
Debian 13golang-1.24Fix pendingDEBIAN-CVE-2025-68119
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2025-68119
Red Hat Enterprise Linux 10go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 10golangFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 9golangFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-testsFix pending
Fix deferred
Red Hat Enterprise Linux 8go-toolsetWill not fix
Out of support scope
Red Hat Enterprise Linux 8golangWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-binWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-miscWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-raceWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-srcWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-testsWill not fix
Out of support scope
Alpine Linux 3.24goFixed1.25.6-r0ALPINE-CVE-2025-68119
Alpine Linux 3.23goFixed1.25.6-r0ALPINE-CVE-2025-68119
Alpine Linux 3.22goFixed1.24.12-r0ALPINE-CVE-2025-68119
Go librarytoolchainFixed1.25.6GO-2026-4338

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.