CVE-2025-68119

Unexpected code execution when invoking toolchain in cmd/go

High · published January 28, 2026

CVSS v3.1
7.0
EPSS
0%
Percentile
30.9
In the wild
Unconfirmed
What it is

⚡ Malicious version strings are the key to unexpected local code execution! A crafty attacker could exploit this flaw to run their code – no need for a front row seat! 🚨 Think of it like a recipe where the instructions are written in invisible ink. If a chef (your system) blindly follows the recipe (the module) without checking the ingredients (version strings), they could end up cooking something dangerous instead of a delicious dish! An attacker could leverage this vulnerability to execute arbitrary code on your machine, wreaking havoc on your filesystem. Imagine them sneaking in and writing files or modifying existing ones without you ever knowing! This could lead to data breaches or even a complete system takeover, and that is absolutely devastating!

Put simply

Think of it like a recipe where the instructions are written in invisible ink. If a chef (your system) blindly follows the recipe (the module) without checking the ingredients (version strings), they could end up cooking something dangerous instead of a delicious dish! This vulnerability arises when Mercurial or Git allows downloading and building modules with malicious version strings, leading to local code execution or unauthorized file writes. The exploit relies on external VCS commands being constructed unsafely when handling custom domains or malicious inputs.

What to do

An attacker could leverage this vulnerability to execute arbitrary code on your machine, wreaking havoc on your filesystem. Imagine them sneaking in and writing files or modifying existing ones without you ever knowing! This could lead to data breaches or even a complete system takeover, and that is absolutely devastating! To protect yourself, update to the latest version of your toolchain that addresses this vulnerability. Always validate the sources and versions of modules you download, especially from non-standard domains. Enable strict version checks to ensure only trusted modules are used. You've got this! With a little diligence and by following these steps, you can secure your system against this sneaky vulnerability. 🛡️

The record
Technical detail
CVSS v3.1
7.0 · HIGH
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00381 · 30.9th percentile
Published
2026-01-28T19:30Z
EPSS history
Timeline
  • 28 JAN 19:30Z
    Unexpected code execution when invoking toolchain in cmd/go
    cvelistv5