Skip to main content
Mallory
HighVulnerability

CVE-2025-68119: Go Toolchain VCS Argument Injection Leading to Code Execution or Arbitrary File Writes

Published Jan 28, 2026 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 2 in a dayToday
CVSS7.0High · v3.1
EPSS0.29%14th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Golang
IdentifiersCVE-2025-68119CWE-88

CVE-2025-68119 is an argument-injection vulnerability in the Go toolchain's construction of external version-control commands during module retrieval and builds. On systems with Mercurial installed, retrieving modules from non-standard sources, such as custom domains, can cause arbitrary local code execution. Supplying a malicious module version string can also trigger the Mercurial issue. On systems with Git installed, explicitly supplied malicious module version strings can cause arbitrary file writes. The Git-related attack does not affect module resolution using @latest or bare module paths. Fixes use safer version-control options and reject module version strings beginning with a hyphen or forward slash.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can execute attacker-controlled code with the permissions of the account running the Go toolchain or overwrite arbitrary files writable by that account. Developer workstations and automated build environments processing attacker-controlled module sources or versions are at risk. Consequences can include compromise of accessible data, modification of build inputs or outputs, and disruption of the build environment.

Mitigation

If you can’t patch tonight, do this now.

Until patched, avoid retrieving modules from untrusted non-standard sources and prevent attacker-controlled version strings from reaching the Go toolchain. Validate module source and version inputs in build pipelines, including rejecting version strings beginning with '-' or '/'. Using @latest or bare module paths avoids the explicitly supplied malicious-version-string attack affecting Git, but does not establish protection against the Mercurial custom-source attack.

Remediation

Patch, then assume compromise.

Upgrade the Go toolchain to Go 1.24.12 or Go 1.25.6, or a later supported release containing the fixes. Update affected distribution-provided Go packages using the corresponding security updates. Ensure developer environments and CI build images use the corrected toolchain. The patch hardens external VCS invocation and rejects module version strings beginning with '-' or '/'.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GolangGoapplication
FAQ

Frequently asked questions

Is CVE-2025-68119 exploited in the wild?
As of Nov 23, 2026, Mallory has no reports of CVE-2025-68119 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-68119?
As of Nov 23, 2026, Mallory has found no public exploit for CVE-2025-68119.
Is there a patch for CVE-2025-68119?
Upgrade the Go toolchain to Go 1.24.12 or Go 1.25.6, or a later supported release containing the fixes. Update affected distribution-provided Go packages using the corresponding security updates.
What products are affected by CVE-2025-68119?
Golang Go.
How severe is CVE-2025-68119?
CVE-2025-68119 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 0.29% (14th percentile) as of Nov 23, 2026.
Activity feed

Recent activity

27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
golangNews · Nov 16, 2026[security] Go 1.25.6 and Go 1.24.12 are releasedUnsafe construction of external VCS commands in Go's toolchain can cause unexpected code execution when retrieving modules from non-standard sources on systems with Mercurial installed. On systems with Git installed, explicitly supplied malicious module version strings can permit writes to arbitrary files accessible to the user; this Git-related condition does not affect @latest or bare module paths. Go 1.25.6 and 1.24.12 use safer VCS options and reject module version strings beginning with '-' or '/'.Read more ↗golangNews · Nov 16, 2026[security] Go 1.25.6 and Go 1.24.12 are releasedUnsafe construction of external version-control commands in Go's toolchain can cause unexpected code execution when downloading modules from non-standard sources on systems with Mercurial installed. On systems with Git installed, explicitly supplied malicious module-version strings can enable writes to arbitrary files accessible to the user; @latest and bare module paths are unaffected by that version-string attack. Go 1.25.6 and 1.24.12 use safer VCS options and reject module versions beginning with '-' or '/'.Read more ↗tenable nessus pluginsNews · Nov 3, 2026TencentOS Server 4: golang (TSSA-2026:0118) | Tenable®A Go toolchain vulnerability involving construction of external version-control commands. With Mercurial installed, downloading modules from non-standard sources or supplying malicious version strings can cause unexpected code execution. With Git installed, explicitly supplied malicious version strings can enable arbitrary file writes; @latest and bare module paths are unaffected by that file-write scenario.Read more ↗tenable cloud security pluginsNews · Oct 2, 2026Echo: golang-1.24: security update to 1.24.12 | Tenable®A vulnerability in Go's module-handling toolchain can cause local code execution through improperly constructed Mercurial commands or arbitrary file writes when Git is installed. The Mercurial issue can arise when downloading modules from non-standard sources or supplying malicious version strings. The Git issue requires explicitly supplied malicious version strings and does not affect @latest or bare module paths. The plugin reports a CVSS v3 base score of 7.0 and recommends upgrading golang-1.24 to version 1.24.12 or later.Read more ↗
+3 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity13Community discussion across Reddit, Mastodon, and other social sources.