The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-68119

CVE-2025-68119: Module Build System RCE Vulnerability

CVE-2025-68119 is a remote code execution vulnerability affecting module build systems with Mercurial or Git. Malicious version strings can enable local code execution or arbitrary file writes. This article covers technical details, affected systems, impact analysis, and mitigation strategies.

Published: January 30, 2026

CVE-2025-68119 Overview

CVE-2025-68119 is a local code execution vulnerability in the Go toolchain that affects systems with Mercurial (hg) or Git installed. The vulnerability arises from improper handling of malicious version strings when downloading and building modules from non-standard sources. Attackers can exploit this flaw to execute arbitrary code locally on systems with Mercurial, or achieve arbitrary file writes on systems with Git installed.

Critical Impact

Local code execution through maliciously crafted module version strings when using external version control systems with the Go toolchain.

Affected Products

  • Go toolchain (systems with Mercurial installed)
  • Go toolchain (systems with Git installed)
  • Go modules from custom/non-standard domains

Discovery Timeline

  • 2026-01-28 - CVE CVE-2025-68119 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2025-68119

Vulnerability Analysis

This vulnerability stems from the Go toolchain's improper construction of external VCS (Version Control System) commands when processing module version strings. The issue manifests differently depending on which VCS is installed on the target system.

On systems with Mercurial (hg) installed, downloading modules from non-standard sources such as custom domains can lead to unexpected code execution. The vulnerability occurs because malicious version strings are not properly sanitized before being passed to external VCS commands, allowing command injection.

On systems with Git installed, the attack surface is more limited but still significant. Malicious version strings can be crafted to allow an attacker to write to arbitrary files on the filesystem. However, this variant requires explicitly providing the malicious version strings to the toolchain and does not affect standard usage patterns like @latest or bare module paths.

Root Cause

The root cause is insufficient input validation and improper sanitization of module version strings before they are incorporated into shell commands for external VCS operations. When the Go toolchain constructs commands for Mercurial or Git to fetch module dependencies, it fails to properly escape or validate version string parameters, creating an injection point for malicious input.

Attack Vector

The attack requires local access and leverages the Go module download mechanism. An attacker must either:

  1. Host a malicious module on a custom domain with a specially crafted version string (Mercurial attack path)
  2. Convince a developer to explicitly specify a malicious version string when using the Go toolchain (Git attack path)

The vulnerability is triggered during the module download and build process when external VCS commands are invoked with unsanitized version string parameters.

The attack exploits the way the Go toolchain passes version string parameters to external VCS binaries. When a malicious version string containing shell metacharacters or special VCS command arguments is provided, it can escape the intended context and execute arbitrary commands or manipulate file operations. The Mercurial variant is more dangerous as it can be triggered through normal module download operations from non-standard sources, while the Git variant requires explicit malicious input.

Detection Methods for CVE-2025-68119

Indicators of Compromise

  • Unexpected process execution spawned from go commands involving hg or git subprocesses
  • Unusual file writes in unexpected filesystem locations during module download operations
  • Module version strings containing special characters, shell metacharacters, or command arguments
  • Network connections to non-standard module hosting domains during build processes

Detection Strategies

  • Monitor go get, go mod download, and go build commands for unusual subprocess behavior
  • Implement file integrity monitoring on development systems to detect unauthorized file writes
  • Audit module dependencies for non-standard hosting domains and unusual version string patterns
  • Deploy endpoint detection rules for command injection patterns in VCS subprocess arguments

Monitoring Recommendations

  • Enable verbose logging for Go toolchain operations in CI/CD pipelines
  • Monitor for anomalous hg or git command executions with unusual arguments
  • Implement network monitoring to detect connections to untrusted module hosting sources
  • Review module download logs for version strings containing special characters or unexpected patterns

How to Mitigate CVE-2025-68119

Immediate Actions Required

  • Update the Go toolchain to the latest patched version as referenced in the Go Developer Change Log
  • Audit any custom module sources and version string specifications in existing projects
  • Avoid downloading modules from non-standard or untrusted sources until patches are applied
  • Remove or restrict access to Mercurial installations on development systems if not required

Patch Information

The Go development team has released a fix for this vulnerability. System administrators and developers should update their Go installations immediately. The patch addresses the improper handling of version strings when constructing external VCS commands.

For detailed patch information, refer to:

  • Go Developer Change Log
  • Go Issue Tracker Entry
  • Golang Announcement Group
  • Go Vulnerability Report

Workarounds

  • Use only @latest or bare module paths instead of explicit version strings when possible
  • Restrict module downloads to trusted, standard module proxies (e.g., proxy.golang.org)
  • Configure GOPROXY environment variable to use only trusted proxies
  • Temporarily uninstall Mercurial from development systems if not actively required for other purposes
bash
# Configuration example
# Set GOPROXY to use only trusted module proxies
export GOPROXY="https://proxy.golang.org,direct"

# Alternatively, restrict to proxy only (no direct downloads)
export GOPROXY="https://proxy.golang.org"
export GONOSUMDB=""
export GOPRIVATE=""

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMercurial

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • Technical References
  • Go Developer Change Log

  • Go Issue Tracker Entry

  • Golang Announcement Group

  • Go Vulnerability Report
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English