Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-31862

CVE-2026-31862: Cloud CLI RCE Vulnerability

CVE-2026-31862 is a remote code execution flaw in Cloud CLI that allows authenticated attackers to execute arbitrary OS commands through Git-related API endpoints. This post covers the technical details, affected versions, and mitigation.

Published: March 13, 2026

CVE-2026-31862 Overview

CVE-2026-31862 is a command injection vulnerability affecting Cloud CLI (also known as Claude Code UI), a desktop and mobile user interface for Claude Code, Cursor CLI, Codex, and Gemini-CLI. Prior to version 1.24.0, multiple Git-related API endpoints utilize execAsync() with string interpolation of user-controlled parameters including file, branch, message, and commit values. This allows authenticated attackers to execute arbitrary operating system commands on the underlying host system.

Critical Impact

Authenticated attackers can achieve remote code execution by injecting malicious commands through Git-related API parameters, potentially leading to complete system compromise, data theft, or lateral movement within the network.

Affected Products

  • Cloud CLI (Claude Code UI) versions prior to 1.24.0
  • Desktop UI installations for Claude Code, Cursor CLI, Codex, and Gemini-CLI
  • Mobile UI installations for Claude Code, Cursor CLI, Codex, and Gemini-CLI

Discovery Timeline

  • 2026-03-11 - CVE-2026-31862 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-31862

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The flaw exists in how Cloud CLI handles user-supplied input when constructing shell commands for Git operations.

The application's Git-related API endpoints accept user-controlled parameters such as file paths, branch names, commit messages, and commit identifiers. These parameters are directly interpolated into command strings passed to execAsync() without proper sanitization or parameterization. An authenticated attacker can exploit this by injecting shell metacharacters and commands within these parameters.

The network-based attack vector combined with the ability to break out of the application's scope makes this vulnerability particularly severe. Successful exploitation could result in complete host compromise, including unauthorized access to sensitive data, installation of malware, or using the compromised system as a pivot point for further attacks.

Root Cause

The root cause is the use of unsafe string interpolation when building shell commands. Instead of using parameterized command execution or proper input sanitization, the application directly concatenates user input into command strings. Common shell metacharacters such as backticks, semicolons, pipes, and command substitution syntax ($(...)) can be used to break out of the intended command context and execute arbitrary commands.

Attack Vector

The vulnerability is exploitable over the network by authenticated users. An attacker with valid credentials to the Cloud CLI application can submit specially crafted values through the Git-related API endpoints. When these malicious parameters are processed by the backend and passed to execAsync(), the injected commands execute with the privileges of the application process.

For example, a malicious branch name or commit message containing shell metacharacters would be interpreted by the shell rather than treated as literal string data. The vulnerability affects multiple API endpoints that handle Git operations, increasing the attack surface available to authenticated users.

Technical details and proof-of-concept information can be found in the GitHub Security Advisory GHSA-f2fc-vc88-6w7q.

Detection Methods for CVE-2026-31862

Indicators of Compromise

  • Unusual shell command execution patterns originating from the Cloud CLI application process
  • Git API requests containing shell metacharacters such as ;, |, $(), or backticks in parameter values
  • Unexpected child processes spawned by the Cloud CLI service
  • Log entries showing malformed Git commands or shell syntax errors

Detection Strategies

  • Monitor API request logs for Git-related endpoints containing suspicious characters or command injection patterns
  • Implement application-level logging to capture all parameters passed to execAsync() calls
  • Deploy endpoint detection and response (EDR) solutions to identify anomalous process execution chains
  • Configure web application firewalls (WAF) to detect and block common command injection payloads

Monitoring Recommendations

  • Enable detailed audit logging for the Cloud CLI application and its API endpoints
  • Monitor process creation events on systems running Cloud CLI, particularly child processes of the main application
  • Implement alerting for any Git operations with unusual parameter lengths or character patterns
  • Review network traffic for API calls to Git-related endpoints with encoded or obfuscated payloads

How to Mitigate CVE-2026-31862

Immediate Actions Required

  • Upgrade Cloud CLI (Claude Code UI) to version 1.24.0 or later immediately
  • Audit access logs for any suspicious Git API activity prior to patching
  • Review user accounts with access to the application and remove unnecessary privileges
  • Implement network segmentation to limit the blast radius if exploitation has occurred

Patch Information

The vulnerability has been fixed in Cloud CLI version 1.24.0. Users should upgrade to this version or later to remediate the issue. The fix is available through the GitHub Release v1.24.0.

The security advisory with full details is available at the GitHub Security Advisory GHSA-f2fc-vc88-6w7q.

Workarounds

  • Restrict network access to the Cloud CLI application to trusted IP addresses only
  • Implement additional authentication layers such as VPN or zero-trust network access before the application
  • Disable or limit access to Git-related API endpoints if they are not required for operations
  • Deploy a reverse proxy with strict input validation rules to filter malicious requests before they reach the application
bash
# Example: Restrict access to Cloud CLI using iptables
iptables -A INPUT -p tcp --dport 8080 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCloud Cli

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Release v1.24.0

  • GitHub Security Advisory GHSA-f2fc-vc88-6w7q
  • Related CVEs
  • CVE-2026-31975: Cloud CLI OS Command Injection Vulnerability

  • CVE-2026-31861: Cloud CLI Command Injection 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