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

CVE-2026-39861: Anthropic Claude Code RCE Vulnerability

CVE-2026-39861 is a remote code execution flaw in Anthropic Claude Code that allows sandbox escape through symlink manipulation. This post explains the vulnerability's impact, affected versions, and mitigation steps.

Published: April 23, 2026

CVE-2026-39861 Overview

CVE-2026-39861 is a sandbox escape vulnerability in Anthropic Claude Code, an agentic coding tool. Prior to version 2.1.64, Claude Code's sandbox implementation failed to prevent sandboxed processes from creating symbolic links pointing to locations outside the workspace directory. When Claude Code subsequently attempted to write to a path within such a symlink, its unsandboxed process would follow the symlink and write to the target location outside the workspace without prompting the user for confirmation.

This vulnerability represents a classic symlink attack (CWE-22: Path Traversal) where neither the sandboxed command nor the unsandboxed application could independently write outside the workspace, but their combination could achieve arbitrary file writes to locations outside the intended sandbox boundary—potentially leading to code execution outside the sandbox environment.

Critical Impact

Successful exploitation allows attackers to escape the Claude Code sandbox and write arbitrary files to locations outside the workspace, potentially achieving code execution on the host system through prompt injection attacks.

Affected Products

  • Anthropic Claude Code versions prior to 2.1.64
  • Claude Code for Node.js (all platforms)

Discovery Timeline

  • 2026-04-21 - CVE-2026-39861 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2026-39861

Vulnerability Analysis

The vulnerability stems from an incomplete sandbox isolation mechanism in Claude Code. The sandbox was designed to restrict file system operations to within the designated workspace directory. However, the implementation failed to account for symbolic link creation, which allowed sandboxed processes to create symlinks pointing to arbitrary locations on the file system.

The attack chain requires prompt injection to trigger the vulnerability. An attacker would need to inject malicious content into a Claude Code context window, which would then instruct the sandboxed environment to create a symlink within the workspace pointing to a sensitive location outside of it (such as ~/.bashrc, /etc/cron.d/, or other locations that could enable code execution). When Claude Code's unsandboxed process later performs a legitimate write operation targeting what appears to be a path within the workspace, it follows the symlink and writes to the external target location.

This represents a time-of-check time-of-use (TOCTOU) style vulnerability combined with improper symlink handling, where the security boundary between sandboxed and unsandboxed operations was not consistently enforced.

Root Cause

The root cause is the failure to validate or restrict symbolic link creation within the sandboxed environment. The sandbox implementation did not include symlink creation in its restricted operations list, creating a gap where:

  1. Sandboxed processes could create symlinks pointing outside the workspace
  2. The unsandboxed parent process followed symlinks without validating their targets
  3. No user confirmation was required when writes traversed symlink boundaries

This architectural oversight allowed the combination of sandboxed and unsandboxed operations to bypass the intended security boundary.

Attack Vector

Exploitation requires network-based access to inject untrusted content into a Claude Code context window. The attack vector involves:

  1. Prompt Injection: Attacker injects malicious instructions into content that Claude Code processes (e.g., through a malicious repository, file, or web content)
  2. Symlink Creation: The injected instructions cause the sandboxed process to create a symlink within the workspace pointing to a sensitive external location
  3. Sandbox Escape: When Claude Code's unsandboxed process writes to the symlink path, the write operation follows the symlink and modifies files outside the workspace
  4. Code Execution: By targeting startup scripts, cron jobs, or other executable locations, attackers can achieve persistent code execution

The vulnerability requires user interaction in that the user must process content containing the prompt injection payload through Claude Code.

Detection Methods for CVE-2026-39861

Indicators of Compromise

  • Unexpected symbolic links within Claude Code workspace directories pointing to locations outside the workspace
  • Modifications to user startup files (.bashrc, .zshrc, .profile) not initiated by the user
  • New or modified cron jobs or scheduled tasks created around the time Claude Code was in use
  • Suspicious file writes to system directories coinciding with Claude Code activity

Detection Strategies

  • Monitor for symlink creation events within Claude Code workspace directories using file system auditing
  • Implement behavioral detection for processes that create symlinks followed by writes to paths resolving outside workspace boundaries
  • Audit Claude Code process activity for file operations targeting sensitive system locations
  • Review process trees for Claude Code to identify unexpected child processes or file operations

Monitoring Recommendations

  • Enable file integrity monitoring on critical system files and directories
  • Configure logging for symlink creation events in user workspace directories
  • Monitor for writes to common persistence locations (.bashrc, cron directories, startup folders) from Node.js processes
  • Implement alerts for Claude Code processes accessing paths outside their designated workspace

How to Mitigate CVE-2026-39861

Immediate Actions Required

  • Update Claude Code to version 2.1.64 or later immediately
  • Users on standard Claude Code auto-update should verify they have received the fix automatically
  • Review workspace directories for any suspicious symlinks pointing outside the workspace
  • Audit recent file system changes for any signs of exploitation

Patch Information

Anthropic has released version 2.1.64 of Claude Code which addresses this vulnerability. Users performing manual updates should update to this version or later. Users on the standard auto-update mechanism have received this fix automatically.

For detailed patch information, refer to the GitHub Security Advisory GHSA-vp62-r36r-9xqp.

Workarounds

  • Limit Claude Code usage to processing only trusted content until the update is applied
  • Avoid processing content from untrusted sources (unknown repositories, web content, or files of unknown origin)
  • Monitor and audit symlink creation within Claude Code workspaces as an interim detection measure
  • Consider running Claude Code in an isolated environment (container or VM) to limit the impact of potential sandbox escapes
bash
# Verify Claude Code version
claude --version

# Check for suspicious symlinks in workspace
find /path/to/workspace -type l -exec ls -la {} \; 2>/dev/null | grep -v "^l.*-> /path/to/workspace"

# Update Claude Code (if using npm)
npm update @anthropic/claude-code

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAnthropic Claude Code

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.10%

  • 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-22
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-66032: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-65099: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-58764: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-54795: Anthropic Claude Code 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