PatchSiren

PatchSiren cyber security CVE debrief

CVE-2025-68119 Go toolchain CVE debrief

CVE-2025-68119 is an unexpected code execution vulnerability when invoking the 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 can cause unexpected code execution due to how external VCS commands are constructed. 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.

Vendor
Go toolchain
Product
toolchain
CVSS
Unknown
CISA KEV
Not listed in stored evidence
Original CVE published
2026-01-28
Original CVE updated
2026-11-23
Advisory published
2026-01-28
Advisory updated
2026-11-23

Who should care

Defenders responsible for Go toolchain deployments, developers using custom module sources, and teams managing systems with Mercurial or Git installed should assess exposure and verify module integrity.

Why it matters

CVE-2025-68119 is a code execution vulnerability in the Go toolchain that can be triggered by malicious module version strings or non-standard sources. Defenders should verify module integrity, restrict sources, and monitor for suspicious activity.

  • Verify module version string integrity to prevent code execution
  • Restrict non-standard module sources to reduce attack surface
  • Monitor for suspicious module downloads and builds
  • Assess exposure of systems with Mercurial or Git installed

Technical summary

The vulnerability is caused by improper construction of external VCS commands and allows for local code execution or arbitrary file writes. This issue can be triggered by providing malicious version strings to the toolchain or downloading modules from non-standard sources. On systems with Mercurial (hg) installed, downloading modules from non-standard sources can cause unexpected code execution due to how external VCS commands are constructed. 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.

Defensive priority

Defenders should prioritize verifying the integrity of modules and version strings, and restrict usage of non-standard sources.

Recommended defensive actions

  • Verify the integrity of modules and version strings
  • Restrict usage of non-standard sources
  • Monitor for suspicious activity
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is triggered by providing malicious version strings to the toolchain or downloading modules from non-standard sources. The issue affects systems with Mercurial (hg) or Git installed.

Sources and references

Verified primary and authoritative sources

  • CVE-2025-68119 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2025-68119

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2025-68119 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2025-68119

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.