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-2026-45033

CVE-2026-45033: GitHub Copilot CLI RCE Vulnerability

CVE-2026-45033 is a remote code execution flaw in GitHub Copilot CLI that allows malicious git repositories to execute arbitrary commands. This post explains its impact, affected versions, and mitigation steps.

Published: May 17, 2026

CVE-2026-45033 Overview

CVE-2026-45033 is a high-severity arbitrary code execution vulnerability in GitHub Copilot CLI versions prior to 1.0.43. The flaw allows a malicious bare git repository nested inside a project directory to execute arbitrary commands when the Copilot agent performs routine git operations. Attackers exploit git's automatic bare repository discovery during directory traversal to set executable configuration keys such as core.fsmonitor, core.hookspath, diff.external, or merge.tool. These keys accept arbitrary shell commands that git runs during normal operations like status, diff, or rev-parse. GitHub fixed the vulnerability in Copilot CLI version 1.0.43.

Critical Impact

A malicious nested git repository can achieve arbitrary code execution on a developer workstation without user awareness or approval when the Copilot CLI agent interacts with the project directory.

Affected Products

  • GitHub Copilot CLI versions prior to 1.0.43
  • Development environments running Copilot CLI with access to untrusted project directories
  • Systems where the agent performs git operations on cloned or downloaded repositories

Discovery Timeline

  • 2026-05-13 - CVE-2026-45033 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-45033

Vulnerability Analysis

The vulnerability stems from improper handling of git configuration discovery [CWE-696]. Git automatically discovers repositories by walking up the directory tree looking for a .git directory or a bare repository marker. When the Copilot CLI agent performs git operations inside a project, git can locate a nested bare repository and read its config file. That configuration may contain executable directives that git interprets and runs.

Git supports more than 15 configuration keys whose values are shell commands. Examples include core.fsmonitor, core.hookspath, core.pager, core.editor, diff.external, merge.tool, and gpg.program. Git executes these commands during everyday operations such as git status, git diff, and git rev-parse. The Copilot CLI invokes these commands as part of normal agent workflows, providing an automatic trigger for the attacker payload.

Root Cause

The root cause is the agent's reliance on git's permissive repository discovery without validating that discovered repositories are trusted. A bare repository placed inside a project directory is treated by git as a legitimate configuration source. The Copilot CLI does not sandbox git invocations or restrict which configuration keys are honored before running git operations.

Attack Vector

An attacker prepares a project containing a hidden bare git repository whose config file sets core.fsmonitor or a similar key to a shell command. The victim clones, downloads, or extracts the project and launches Copilot CLI in or near that directory. When the agent runs any git command, git discovers the nested bare repository, reads its configuration, and executes the attacker-supplied command under the user's privileges. No user prompt or approval is shown because the execution occurs inside git itself.

No verified exploitation code is published for this CVE. Refer to the GitHub Security Advisory for technical details and the upstream fix.

Detection Methods for CVE-2026-45033

Indicators of Compromise

  • Presence of unexpected bare git repositories (directories containing HEAD, config, and objects/ without a working tree) nested inside project folders
  • Git config files containing core.fsmonitor, core.hookspath, diff.external, merge.tool, or gpg.program set to shell commands or interpreter invocations
  • Child processes spawned by git that are unrelated to git internals, such as bash, sh, curl, wget, or powershell

Detection Strategies

  • Scan developer workstations and source directories for nested .git and bare repositories that were not created by the user
  • Parse git config files in repositories and flag executable-valued keys against an allowlist
  • Monitor process telemetry for git parent processes invoking shells, network utilities, or scripting engines

Monitoring Recommendations

  • Alert on Copilot CLI sessions where git operations spawn unexpected interpreters or outbound network connections
  • Track installations of GitHub Copilot CLI and flag versions below 1.0.43
  • Audit file system events for the creation of bare repository structures inside existing project directories

How to Mitigate CVE-2026-45033

Immediate Actions Required

  • Upgrade GitHub Copilot CLI to version 1.0.43 or later on all developer workstations
  • Inventory existing project directories for nested bare repositories and remove any that are not expected
  • Restrict use of Copilot CLI to trusted projects until the upgrade is confirmed

Patch Information

GitHub fixed CVE-2026-45033 in Copilot CLI version 1.0.43. The patch is described in the GitHub Security Advisory GHSA-9ccr-r5hg-74gf. Install the updated release through the standard distribution channel used in your environment.

Workarounds

  • Avoid running Copilot CLI inside directories sourced from untrusted archives or repositories until patched
  • Set GIT_CONFIG_NOSYSTEM=1 and use safe.directory allowlisting to limit which repositories git will operate on
  • Run Copilot CLI inside an isolated container or sandbox so that arbitrary command execution does not affect the host
bash
# Verify Copilot CLI version and search for suspicious nested bare repositories
copilot --version

# Locate nested bare repositories inside a project tree
find . -type f -name HEAD -exec grep -l "ref: refs/" {} \; \
  | xargs -I{} dirname {}

# Inspect git configs for executable keys
grep -RInE "fsmonitor|hookspath|external|pager|editor|program|tool" \
  $(find . -name config -path "*/.git/*" -o -name config -path "*/objects/.." )

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGit

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/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
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-696
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-4496: Git-MCP-Server RCE Vulnerability

  • CVE-2024-32004: Git-scm Git RCE Vulnerability

  • CVE-2025-48384: Git-scm Git RCE Vulnerability

  • CVE-2025-48385: Git Bundle URI 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