Security mailing lists by PureSourceCode

CVE-2025-68119

HIGH 7.0CVSS 3.1

Unexpected code execution when invoking toolchain in cmd/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.

Published
28 Jan 2026
Last modified
23 Nov 2026
Assigned by
security@golang.org
NVD status
Analyzed
Weakness
CWE-787
Also known as
BIT-golang-2025-68119GO-2026-4338
Sources
NVDJSONCVE ListJSONOSV GO-2026-4338JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE List CISA-ADP CVSS 3.1 HIGH 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: total

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
< 1.24.12 1.24.12
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
>= 1.25.0, < 1.25.6 1.25.6
CVE List https://pkg.go.dev cmd/go < 1.24.13; >= 1.25.0, < 1.25.6 1.24.13, 1.25.6
OSV Go toolchain < 1.24.13; >= 1.25.0, < 1.25.6 1.24.13, 1.25.6

References

History

  • 25 Nov 2026 20:34 UTC · CVE List: first stored (published 28 Jan 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jan 2026)
  • 25 Nov 2026 20:10 UTC · NVD: first stored (published 28 Jan 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.