cve.bz

CVE-2025-68119 golang go: Out-of-bounds Write

7.0 highEPSS 0.4%Fix available

High (7.0) in golang go. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.25.6.

On this page
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.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-01-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-68119 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-68119?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-68119?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-68119 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go toolchain cmd/gofrom 1.25.0 before 1.25.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-4338Gotoolchain>=1.25.0 <1.25.61.25.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2025-68119
Debian13golang-1.24no fix listedDEBIAN-CVE-2025-68119
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2025-68119
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2025-68119
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2025-68119
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.18 and 3 moreno fix listedUBUNTU-CVE-2025-68119
Ubuntu22.04:LTSgolang-1.17, golang-1.18, golang-1.20 and 5 moreno fix listedUBUNTU-CVE-2025-68119
Ubuntu24.04:LTSgolang-1.21, golang-1.22, golang-1.23 and 2 moreno fix listedUBUNTU-CVE-2025-68119
Ubuntu25.10, 26.04:LTSgolang-1.23, golang-1.24, golang-1.25no fix listedUBUNTU-CVE-2025-68119
UbuntuPro:16.04:LTSgolang-1.13, golang-1.18no fix listedUBUNTU-CVE-2025-68119
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16, golang-1.18no fix listedUBUNTU-CVE-2025-68119
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2025-68119
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2025-68119
Red Hathummingbird:1golang1.25, golang1.25-bin, golang1.25-src and 4 more0:1.25.9-1.hum1RHSA-2026:7385
Red Hathummingbird:1golang1.26, golang1.26-bin, golang1.26-src and 4 more0:1.26.2-1.hum1RHSA-2026:7291
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.241.24.12-150000.1.53.1SUSE-SU-2026:0219-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.241.24.13-150000.1.56.1SUSE-SU-2026:0426-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.251.25.6-150000.1.26.1SUSE-SU-2026:0218-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.24-openssl1.24.12-150000.1.18.1SUSE-SU-2026:0296-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.24-openssl1.24.13-150000.1.23.1SUSE-SU-2026:0687-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.25-openssl1.25.6-150000.1.9.1SUSE-SU-2026:0297-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.24-openssl1.24.12-150600.13.15.1SUSE-SU-2026:0308-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.24-openssl1.24.13-150600.13.18.1SUSE-SU-2026:0789-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.25-openssl1.25.6-150600.13.9.1SUSE-SU-2026:0298-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.241.24.12-160000.1.1SUSE-SU-2026:20122-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.241.24.13-160000.1.1SUSE-SU-2026:20429-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.24-openssl1.24.13-160000.1.1SUSE-SU-2026:20629-1
2 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6go1.241.24.12-150000.1.53.1SUSE-SU-2026:0219-1
openSUSELeap 15.6go1.241.24.13-150000.1.56.1SUSE-SU-2026:0426-1
openSUSELeap 15.6go1.24-openssl1.24.12-150600.13.15.1SUSE-SU-2026:0308-1
openSUSELeap 15.6go1.24-openssl1.24.13-150600.13.18.1SUSE-SU-2026:0789-1
openSUSELeap 15.6go1.251.25.6-150000.1.26.1SUSE-SU-2026:0218-1
openSUSELeap 15.6go1.25-openssl1.25.6-150600.13.9.1SUSE-SU-2026:0298-1
openSUSELeap 15.6govulncheck-vulndb0.0.20260128T190828-150000.1.143.1SUSE-SU-2026:0354-1
openSUSELeap 16.0coredns1.14.2-bp160.1.1openSUSE-SU-2026:20619-1
openSUSELeap 16.0go1.241.24.12-160000.1.1openSUSE-SU-2026:20077-1
openSUSELeap 16.0go1.241.24.13-160000.1.1openSUSE-SU-2026:20220-1
openSUSELeap 16.0go1.24-openssl1.24.13-160000.1.1openSUSE-SU-2026:20308-1
openSUSELeap 16.0go1.251.25.6-160000.1.1openSUSE-SU-2026:20085-1
5 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.22go1.24.12-r0ALPINE-CVE-2025-68119
Alpinev3.23, v3.24go1.25.6-r0ALPINE-CVE-2025-68119
Azure Linux2msft-golang1.24.12-1AZL-75639
Azure Linux3golangno fix listedAZL-78939 AZL-98691
Azure Linux3golang1.24.12-1AZL-75698
Azure Linux3golang1.25.6-1AZL-75728
Alpaquita23, 25go1.24.12-r0BELL-CVE-2025-68119
Alpaquitastreamgo1.25.6-r0BELL-CVE-2025-68119
BellSoft Hardened Containers23, 25go1.24.12-r0BELL-CVE-2025-68119
BellSoft Hardened Containersstreamgo1.25.6-r0BELL-CVE-2025-68119

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is rated Moderate severity by Red Hat Product Security, because exploitation requires non-standard and intentional user behavior.

The attacker must explicitly supply a specially crafted module version string, which does not occur during normal Go module usage such as @latest or standard module paths, making the attack complexity high.

Additionally, user interaction is required, as the vulnerable behavior is only triggered when a user manually invokes the Go toolchain to download or build the malicious module.

While successful exploitation can result in local code execution or arbitrary file modification, the combination of local access, manual input, and uncommon usage patterns significantly limits the likelihood of exploitation in typical environments.

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagesgolang1-26-main-1.26.2-1.hum1Fixed 2026-04-09RHSA-2026:7291
Red Hat Hardened Imagesgolang1-25-main-1.25.9-1.hum1Fixed 2026-04-10RHSA-2026:7385
Red Hat Enterprise Linux 10golangFix deferred
Red Hat Enterprise Linux 8go-toolset:rhel8/golangOut of support scope
Red Hat Enterprise Linux 9golangFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-68119.

References

Check your stackJSON