CVE-2025-68119
JSON

7.0high

Unexpected code execution when invoking toolchain in cmd/go

Severity
7.0high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.36% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2026-4338BIT-GOLANG-2025-68119

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.

Affected

Product or packageVersionsReported by
cmd/gobefore 1.24.13, from 1.25.0 before 1.25.6CVE List
toolchain (Go)before 1.24.13, from 1.25.0 before 1.25.6Go Vulnerability Database
golang gobefore 1.24.12, from 1.25.0 before 1.25.6NVD
golang (Bitnami)from 1.25.0 before 1.25.6Bitnami Vulnerability Database

All scores

CISA-ADP7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-78CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Descargar y construir módulos con cadenas de versión maliciosas puede causar la ejecución de código local. En sistemas con Mercurial (hg) instalado, descargar módulos de fuentes no estándar (por ejemplo, dominios personalizados) puede causar la ejecución de código inesperada debido a cómo se construyen los comandos VCS externos. Este problema también puede ser provocado al proporcionar una cadena de versión maliciosa a la cadena de herramientas. En sistemas con Git instalado, descargar y construir módulos con cadenas de versión maliciosas puede permitir a un atacante escribir en archivos arbitrarios en el sistema de archivos. Esto solo puede ser provocado al proporcionar explícitamente las cadenas de versión maliciosas a la cadena de herramientas y no afecta el uso de @latest o rutas de módulo bare.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-68119 changed 2026-11-23CVE Terms of Use
Go Vulnerability DatabaseGO-2026-4338 changed 2026-11-23CC-BY-4.0
NVDCVE-2025-68119 changed 2026-11-23Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2025-68119 changed 2026-09-08Apache-2.0