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-29783

CVE-2026-29783: GitHub Copilot CLI RCE Vulnerability

CVE-2026-29783 is a remote code execution flaw in GitHub Copilot CLI that exploits bash parameter expansion to bypass safety checks. This article covers the technical details, affected versions, exploitation risks, and mitigation.

Published: March 13, 2026

CVE-2026-29783 Overview

A command injection vulnerability exists in GitHub Copilot CLI versions 0.0.422 and earlier that allows arbitrary code execution through crafted bash parameter expansion patterns. The vulnerability resides in the shell tool's safety assessment mechanism, which fails to properly evaluate certain bash parameter transformation operators that can embed executable code within seemingly read-only commands.

An attacker who can influence the commands executed by the Copilot CLI agent—through prompt injection via malicious repository files (README files, code comments, issue bodies), compromised MCP server responses, or crafted user instructions containing obfuscated commands—can exploit this flaw to execute arbitrary commands on the user's workstation. This bypass is particularly dangerous because it circumvents the safety layer that normally requires user approval for write operations.

Critical Impact

Attackers can achieve arbitrary code execution on developer workstations by injecting malicious bash parameter expansion patterns that appear safe but execute hidden commands, potentially leading to data exfiltration, file modification, or complete system compromise.

Affected Products

  • GitHub Copilot CLI versions 0.0.422 and earlier
  • Systems using GitHub Copilot CLI shell tool with bash parameter expansion capabilities

Discovery Timeline

  • 2026-03-06 - CVE CVE-2026-29783 published to NVD
  • 2026-03-09 - Last updated in NVD database

Technical Details for CVE-2026-29783

Vulnerability Analysis

This command injection vulnerability (CWE-78) exploits a fundamental weakness in how the Copilot CLI's shell safety assessment evaluates commands before execution. The safety layer parses and classifies shell commands as either read-only (safe) or write-capable (requires user approval). However, the assessment fails to account for several bash parameter expansion features that can embed executable code within arguments to otherwise read-only commands.

The vulnerability allows commands that appear to use only read-only utilities to ultimately trigger write operations, completely bypassing the intended security controls. This represents a significant trust boundary violation in AI-assisted developer tooling.

Root Cause

The root cause lies in insufficient parsing of bash parameter expansion syntax within the shell tool's command safety classifier. The safety assessment treats expanded parameters as static values rather than recognizing that certain expansion patterns can execute arbitrary code during parameter evaluation.

The specific dangerous patterns that bypass the safety check include:

  • ${var@P} - Prompt expansion operator that can execute embedded commands
  • ${var=value} and ${var:=value} - Assignment operators that can contain command substitutions
  • ${!var} - Indirect expansion that can reference variables containing commands
  • Nested $(cmd) or <(cmd) constructs inside ${...} expansions

These patterns allow an attacker to craft commands that the safety layer classifies as read-only while actually embedding malicious code execution.

Attack Vector

The attack can be delivered through multiple vectors that influence the text processed by the Copilot CLI shell tool:

Prompt Injection via Repository Content: Malicious actors can embed obfuscated bash parameter expansion patterns in README files, code comments, or issue bodies within repositories. When a developer uses Copilot CLI to interact with these repositories, the injected patterns may be processed and executed.

Compromised MCP Server Responses: If the Model Context Protocol (MCP) server returns malicious content, the crafted bash expansion patterns can be included in suggested commands.

Crafted User Instructions: Social engineering attacks can trick users into executing commands that contain hidden malicious parameter expansions that appear benign to both the user and the safety assessment layer.

The network-accessible nature of this attack combined with the potential for user interaction through legitimate developer workflows makes this a practical exploitation scenario.

Detection Methods for CVE-2026-29783

Indicators of Compromise

  • Unusual bash parameter expansion patterns in shell history, particularly ${var@P}, ${var=value}, or ${!var} constructs
  • Unexpected process spawning from Copilot CLI execution contexts
  • Shell commands containing nested $(...) or <(...) within parameter expansions
  • Evidence of data exfiltration or unauthorized file modifications following Copilot CLI usage

Detection Strategies

  • Monitor shell command execution logs for suspicious bash parameter expansion patterns that combine read-only utilities with complex variable expansions
  • Implement behavioral analysis to detect unexpected child process creation from Copilot CLI processes
  • Deploy endpoint detection rules that flag unusual parameter transformation operators in shell commands

Monitoring Recommendations

  • Enable detailed shell command logging on developer workstations using Copilot CLI
  • Configure SIEM alerts for patterns matching known bash parameter expansion exploitation techniques
  • Monitor network traffic from developer endpoints for unexpected outbound connections during Copilot CLI usage

How to Mitigate CVE-2026-29783

Immediate Actions Required

  • Upgrade GitHub Copilot CLI to version 0.0.423 or later immediately
  • Review shell command history for evidence of exploitation attempts
  • Audit repositories and MCP server configurations for potential prompt injection vectors
  • Consider temporarily disabling Copilot CLI shell tool functionality until patching is complete

Patch Information

GitHub has addressed this vulnerability in Copilot CLI version 0.0.423. The patch enhances the shell safety assessment to properly detect and block dangerous bash parameter expansion patterns before command execution.

For detailed patch information, refer to the GitHub Copilot CLI Release v0.0.423 and the GitHub Security Advisory GHSA-g8r9-g2v8-jv6f.

Workarounds

  • Disable the Copilot CLI shell tool until the update can be applied
  • Implement strict input validation for any content processed by Copilot CLI, particularly repository content
  • Run Copilot CLI in isolated environments or containers with limited system access
  • Configure additional approval requirements for all shell commands, not just those classified as write operations
bash
# Verify current Copilot CLI version and upgrade
# Check installed version
copilot --version

# Update to patched version via npm
npm update -g @github/copilot-cli

# Verify upgrade was successful
copilot --version
# Should show 0.0.423 or higher

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGithub Copilot

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/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
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Copilot CLI Release v0.0.423

  • GitHub Security Advisory GHSA-g8r9-g2v8-jv6f
  • Related CVEs
  • CVE-2026-23653: GitHub Copilot Command Injection 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