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

CVE-2026-34452: Claude SDK Path Traversal Vulnerability

CVE-2026-34452 is a path traversal flaw in Claude SDK for Python versions 0.86.0 to 0.87.0 that allows attackers to escape sandbox restrictions via symlink manipulation. This article covers technical details, affected versions, impact, and mitigation steps.

Published: April 2, 2026

CVE-2026-34452 Overview

A Time-of-Check Time-of-Use (TOCTOU) race condition vulnerability exists in the Anthropic Python SDK's async local filesystem memory tool. From version 0.86.0 to before version 0.87.0, the SDK validated that model-supplied paths resolved inside the sandboxed memory directory but then returned the unresolved path for subsequent file operations. A local attacker with write access to the memory directory could retarget a symlink between the validation and use phases, causing reads or writes to escape the sandbox.

Critical Impact

Local attackers can leverage this symlink race condition to escape the filesystem sandbox, potentially enabling unauthorized read or write access to files outside the intended memory directory.

Affected Products

  • Anthropic Python SDK version 0.86.0
  • Anthropic Python SDK versions prior to 0.87.0

Discovery Timeline

  • 2026-03-31 - CVE CVE-2026-34452 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-34452

Vulnerability Analysis

This vulnerability is a classic TOCTOU race condition (CWE-59: Improper Link Resolution Before File Access) in the async filesystem memory tool implementation. The flaw exists in the path validation logic of the _validate_path function within src/anthropic/lib/tools/_beta_builtin_memory_tool.py.

The vulnerable code properly validated that a model-supplied path resolved to a location within the sandboxed memory directory. However, after performing this validation, the function returned the original unresolved full_path rather than the canonicalized resolved_path. This created a window of opportunity between validation and file operation execution.

During this race window, an attacker with local write access to the memory directory could manipulate a symlink to point to a target outside the sandbox. When the subsequent file operation executed using the unresolved path, it would follow the now-modified symlink, effectively bypassing the sandbox restrictions.

The synchronous memory tool implementation was not affected by this vulnerability, as it handled path resolution correctly.

Root Cause

The root cause is improper handling of resolved versus unresolved paths in the async _validate_path function. After calling _async_validate_no_symlink_escape() to verify the path resolved within bounds, the function incorrectly returned full_path (the unresolved path) instead of the validated resolved_path. This allowed the symlink target to be changed after validation but before the actual file operation.

Attack Vector

The attack requires local access and the ability to write to the memory directory. An attacker would:

  1. Create a symlink within the memory directory pointing to a safe location
  2. Trigger an async file operation on the symlink
  3. During the race window after validation but before file access, retarget the symlink to point outside the sandbox (e.g., to /etc/passwd or sensitive application files)
  4. The file operation then follows the modified symlink, escaping the sandbox

The attack complexity is high due to the timing requirements, but successful exploitation allows unauthorized file reads or writes outside the intended sandbox boundary.

python
 
         await _async_validate_no_symlink_escape(full_path, self.memory_root)
 
-        return full_path
+        return AsyncPath(resolved_path)
 
     @override
     async def view(self, command: BetaMemoryTool20250818ViewCommand) -> str:

Source: GitHub Commit Update

Detection Methods for CVE-2026-34452

Indicators of Compromise

  • Unusual symlink creation or modification activity within the Anthropic SDK memory directory
  • File access patterns showing reads or writes to sensitive files like /etc/passwd, /etc/shadow, or application configuration files from SDK processes
  • Rapid sequential file system events (symlink modification followed immediately by file access) within memory tool directories

Detection Strategies

  • Monitor the memory directory used by the Anthropic Python SDK for symlink creation and modification events using filesystem auditing tools
  • Implement file integrity monitoring (FIM) on sensitive system files to detect unauthorized access attempts
  • Review application logs for unexpected file path references outside the designated memory sandbox
  • Use process monitoring to track file operations performed by applications using the Anthropic SDK

Monitoring Recommendations

  • Enable detailed filesystem auditing on systems running applications that use the Anthropic Python SDK version 0.86.0
  • Configure SIEM rules to correlate rapid symlink modifications with subsequent file access events
  • Monitor for processes attempting to access files outside their expected working directories
  • Implement anomaly detection for file access patterns that deviate from normal application behavior

How to Mitigate CVE-2026-34452

Immediate Actions Required

  • Upgrade the Anthropic Python SDK to version 0.87.0 or later immediately
  • Audit applications using version 0.86.0 of the SDK for potential exploitation
  • Review file access logs for evidence of sandbox escape attempts
  • Restrict write access to the memory directory used by the SDK to only trusted processes

Patch Information

Anthropic has released version 0.87.0 of the Python SDK which addresses this vulnerability. The fix ensures that the async _validate_path function returns the resolved path (AsyncPath(resolved_path)) rather than the unresolved path, eliminating the TOCTOU race condition.

Upgrade using pip:

bash
pip install anthropic>=0.87.0

For detailed patch information, see the GitHub Security Advisory GHSA-w828-4qhx-vxx3 and the release notes for v0.87.0.

Workarounds

  • Use the synchronous memory tool implementation instead of the async version, as it was not affected by this vulnerability
  • Implement strict access controls on the memory directory to prevent untrusted local users from writing to it
  • Deploy the application in an isolated environment where local attackers cannot gain write access to the memory directory
  • Consider using container isolation or sandboxing technologies to limit the impact of potential sandbox escapes
bash
# Configuration example
# Upgrade Anthropic SDK to patched version
pip install --upgrade anthropic>=0.87.0

# Verify installed version
pip show anthropic | grep Version

# Restrict memory directory permissions (example)
chmod 700 /path/to/memory/directory
chown appuser:appgroup /path/to/memory/directory

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechAnthropic

  • SeverityMEDIUM

  • CVSS Score5.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-59
  • Technical References
  • GitHub Commit Update

  • GitHub Release v0.87.0

  • GitHub Security Advisory GHSA-w828-4qhx-vxx3
  • Related CVEs
  • CVE-2026-35021: Claude Code CLI OS Command Injection RCE

  • CVE-2026-34450: Claude SDK Python Information Disclosure Flaw
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