A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-24887

CVE-2026-24887: Claude Code RCE Vulnerability

CVE-2026-24887 is a remote code execution flaw in Claude Code that allows bypassing confirmation prompts to execute untrusted commands. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2026-24887 Overview

CVE-2026-24887 is a command injection vulnerability affecting Claude Code, an agentic coding tool developed by Anthropic. Due to an error in command parsing, attackers could bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command. This vulnerability requires the ability to add untrusted content into a Claude Code context window for reliable exploitation.

Critical Impact

Successful exploitation allows attackers to execute arbitrary system commands by bypassing security confirmation prompts, potentially leading to complete system compromise.

Affected Products

  • Claude Code versions prior to 2.0.72

Discovery Timeline

  • 2026-02-03 - CVE CVE-2026-24887 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2026-24887

Vulnerability Analysis

This vulnerability is classified as CWE-78 (OS Command Injection), indicating improper neutralization of special elements used in an OS command. The flaw exists in how Claude Code parses and validates commands before execution, specifically when handling the find command. The parsing error allows specially crafted input to bypass the confirmation prompt that normally protects users from executing untrusted or potentially dangerous commands.

The attack requires network access and some user interaction, as the attacker must find a way to inject untrusted content into the Claude Code context window. Once malicious content is present in the context, the parsing vulnerability can be leveraged to execute arbitrary commands without user confirmation.

Root Cause

The root cause is an error in the command parsing logic within Claude Code. When processing find commands, the parser fails to properly validate or sanitize the command structure, allowing attackers to construct inputs that bypass the security confirmation mechanism. This represents a fundamental flaw in the input validation and command execution pipeline of the application.

Attack Vector

The attack vector is network-based, requiring the attacker to inject malicious content into the Claude Code context window. This could potentially be achieved through:

  1. Malicious code repositories or files that Claude Code processes
  2. Compromised content in files being analyzed
  3. Social engineering to get a user to include malicious content in their context

Once untrusted content is present in the context window, the attacker can craft input that exploits the find command parsing error to execute arbitrary system commands without triggering the confirmation prompt.

The vulnerability mechanism involves crafting specific input patterns that exploit the parsing error in the find command handler. When Claude Code encounters these specially crafted inputs, the confirmation prompt bypass allows direct command execution. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-24887

Indicators of Compromise

  • Unexpected command executions originating from Claude Code processes without corresponding user confirmations
  • Anomalous find command invocations with unusual arguments or chained commands
  • Process spawning patterns indicating command injection (e.g., shell subprocesses with unexpected commands)

Detection Strategies

  • Monitor for Claude Code versions prior to 2.0.72 running in your environment
  • Implement logging for all command executions initiated by Claude Code, particularly find commands
  • Use endpoint detection to identify unusual process trees spawned from Claude Code
  • Review context window contents for suspicious patterns or potentially malicious file references

Monitoring Recommendations

  • Enable verbose logging for Claude Code command execution pipelines
  • Set up alerts for any command execution that bypasses the standard confirmation workflow
  • Monitor for anomalous file system access patterns associated with find command abuse

How to Mitigate CVE-2026-24887

Immediate Actions Required

  • Upgrade Claude Code to version 2.0.72 or later immediately
  • Audit recent command execution logs for any suspicious activity that may indicate exploitation
  • Review context window sources for potentially malicious content in ongoing sessions
  • Restrict Claude Code usage to trusted contexts until patching is complete

Patch Information

Anthropic has released version 2.0.72 of Claude Code which addresses this command injection vulnerability. The patch corrects the command parsing error that allowed the confirmation prompt bypass. Users should update to this version or later to remediate the vulnerability.

For additional details, see the GitHub Security Advisory.

Workarounds

  • If immediate patching is not possible, avoid processing untrusted files or repositories with Claude Code
  • Manually verify all command executions, especially those involving the find command
  • Consider implementing additional process monitoring or sandboxing around Claude Code execution
  • Limit Claude Code's system privileges to reduce the impact of potential command injection
bash
# Verify Claude Code version
claude --version

# Update Claude Code to patched version
npm update @anthropic-ai/claude-code
# Or use your package manager's equivalent update command

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechClaude Code

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/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 Security Advisory
  • Related CVEs
  • CVE-2026-25722: Anthropic Claude Code Path Traversal Flaw

  • CVE-2026-24052: Claude Code SSRF Vulnerability

  • CVE-2026-24053: Claude Code Path Traversal Vulnerability

  • CVE-2026-21852: Claude Code Information Disclosure Flaw
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
  • English
  • 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