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
    • 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-48938

CVE-2025-48938: Cli Go-gh RCE Vulnerability

CVE-2025-48938 is a remote code execution vulnerability in Cli Go-gh that allows attackers to execute arbitrary commands via malicious file paths. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-48938 Overview

A command injection vulnerability has been identified in go-gh, a collection of Go modules designed to simplify the authoring of GitHub CLI extensions. In versions prior to 2.12.1, an attacker controlling a GitHub Enterprise Server could execute arbitrary commands on a user's machine by replacing HTTP URLs provided by GitHub with local file paths for browsing. The Browser.Browse() function failed to properly validate and sanitize URLs before passing them to the system's browser handler, allowing malicious file paths to be executed instead of opened in a browser.

Critical Impact

An attacker with control over a GitHub Enterprise Server instance can achieve arbitrary command execution on client machines by manipulating URL parameters to reference local executable files.

Affected Products

  • cli go-gh versions prior to 2.12.1
  • GitHub CLI extensions utilizing the vulnerable Browser.Browse() function
  • Applications built on go-gh that process URLs from untrusted GitHub Enterprise Server instances

Discovery Timeline

  • 2025-05-30 - CVE CVE-2025-48938 published to NVD
  • 2025-10-15 - Last updated in NVD database

Technical Details for CVE-2025-48938

Vulnerability Analysis

This vulnerability is classified under CWE-501 (Trust Boundary Violation), where the go-gh library fails to properly distinguish between trusted HTTP URLs and potentially malicious local file paths. The Browser.Browse() function in pkg/browser/browser.go was designed to open URLs in the user's default browser. However, the function did not implement adequate validation to ensure the provided argument was actually an HTTP/HTTPS URL rather than a local file path or command.

When a GitHub Enterprise Server is compromised or attacker-controlled, it can serve malicious responses that substitute legitimate HTTP URLs with local file paths. The vulnerable Browser.Browse() function would then pass these paths directly to the operating system's browser handler, which on many systems will execute local files rather than open them in a browser context.

Root Cause

The root cause lies in insufficient input validation within the Browser.Browse() function. The function accepted any string input and passed it to the system browser handler without verifying that the input was a valid HTTP or HTTPS URL. This trust boundary violation allowed file:// URLs and local file paths to be processed in the same manner as legitimate web URLs, creating an execution path for arbitrary commands when those paths pointed to executable files on the local filesystem.

Attack Vector

The attack requires a network-based approach where the attacker controls or compromises a GitHub Enterprise Server instance that the victim's go-gh-based application connects to. The attack flow involves:

  1. The attacker configures a malicious GitHub Enterprise Server or compromises an existing one
  2. When a victim's application requests URLs from the server, the attacker responds with local file paths instead of HTTP URLs
  3. The vulnerable Browser.Browse() function processes these paths without validation
  4. The operating system's browser handler executes the local file, achieving command execution

The security patch introduces URL validation using Go's net/url package to ensure only legitimate HTTP/HTTPS URLs are processed:

go
package browser

import (
	"fmt"
	"io"
	"net/url"
	"os"
	"os/exec"

Source: GitHub Commit Update

The fix adds imports for fmt and net/url packages, enabling proper URL parsing and validation before the browser handler processes the input.

Detection Methods for CVE-2025-48938

Indicators of Compromise

  • Unusual process execution chains originating from browser handler processes
  • go-gh-based applications attempting to access local executable files through browser APIs
  • Network traffic to GitHub Enterprise Server instances returning non-HTTP URL schemes in responses
  • Log entries showing Browser.Browse() calls with file:// URLs or local file paths

Detection Strategies

  • Monitor for process execution events where browser handlers spawn unexpected child processes
  • Implement application-level logging to capture all inputs to Browser.Browse() calls
  • Use endpoint detection rules to identify local file path references in browser handler arguments
  • Review network traffic for responses from GitHub Enterprise Servers containing suspicious URL patterns

Monitoring Recommendations

  • Enable verbose logging for go-gh-based applications to capture URL handling events
  • Configure SIEM rules to alert on file path patterns in browser-related process arguments
  • Audit connections to GitHub Enterprise Server instances and verify server authenticity
  • Implement runtime application self-protection (RASP) to monitor URL validation in Go applications

How to Mitigate CVE-2025-48938

Immediate Actions Required

  • Upgrade go-gh to version 2.12.1 or later immediately
  • Audit all applications and CLI extensions built on go-gh for vulnerable versions
  • Review logs for any suspicious URL patterns that may indicate past exploitation attempts
  • Verify the authenticity and security posture of connected GitHub Enterprise Server instances

Patch Information

The vulnerability has been addressed in go-gh version 2.12.1. The patch enhances Browser.Browse() to properly validate URL schemes and reject local file paths. The fix implements URL parsing using Go's net/url package to allow only legitimate HTTP/HTTPS URLs while blocking file system paths and other potentially dangerous schemes.

Patch details are available in the GitHub Security Advisory and the security commit.

Workarounds

  • No known workarounds are available other than upgrading to version 2.12.1 or later
  • As a temporary measure, avoid connecting go-gh-based applications to untrusted GitHub Enterprise Server instances
  • Consider implementing additional input validation at the application layer before calling Browser.Browse()
  • Restrict network access to only trusted, verified GitHub Enterprise Server instances
bash
# Upgrade go-gh to the patched version
go get github.com/cli/go-gh/v2@v2.12.1

# Verify the installed version
go list -m github.com/cli/go-gh/v2

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGo Gh

  • SeverityLOW

  • CVSS Score2.6

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-501
  • Technical References
  • GitHub Browser Source Code
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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