Severity by source
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
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
8DescriptionGitHub Advisory
Claude Code is an agentic coding tool. Prior to version 2.1.64, Claude Code's sandbox did not prevent sandboxed processes from creating symlinks pointing to locations outside the workspace. When Claude Code subsequently wrote to a path within such a symlink, its unsandboxed process followed the symlink and wrote to the target location outside the workspace without prompting the user for confirmation. This allowed a sandbox escape where neither the sandboxed command nor the unsandboxed app could independently write outside the workspace, but their combination could write to arbitrary locations, potentially leading to code execution outside the sandbox. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window to trigger sandboxed code execution via prompt injection. Users on standard Claude Code auto-update have received this fix automatically. Users performing manual updates are advised to update to version 2.1.64 or later.
AnalysisAI
Sandbox escape in Claude Code versions prior to 2.1.64 enables arbitrary file writes outside the workspace by exploiting symlink handling between sandboxed and unsandboxed processes, potentially leading to code execution. The vulnerability requires prompt injection to trigger malicious sandboxed code execution, creating an exploitable chain where neither component can independently breach the sandbox but their interaction does. EPSS score of 0.08% (23rd percentile) suggests limited real-world exploitation likelihood, and CISA SSVC indicates no known exploitation with non-automatable attack requirements. Version 2.1.64 patches this issue, auto-deployed to standard installations.
Technical ContextAI
Claude Code is an AI-powered agentic coding assistant that executes commands in a sandboxed environment to prevent unauthorized file system access. This vulnerability exploits CWE-22 (Path Traversal) through a symlink-based sandbox escape involving two process types: sandboxed processes that create symbolic links, and unsandboxed processes that write files. The sandbox incorrectly permitted sandboxed processes to create symlinks pointing outside the workspace boundary (e.g., /tmp, /etc, user home directories). When the unsandboxed Claude Code process subsequently wrote to a path within that symlink's tree, it followed the symlink without re-validating workspace boundaries, effectively writing to arbitrary filesystem locations. This represents a classic TOCTOU (Time-Of-Check-Time-Of-Use) variant where privilege separation creates an exploitable window. The CPE cpe:2.3:a:anthropics:claude-code identifies Anthropic's Claude Code as the affected product across all pre-2.1.64 versions.
RemediationAI
Upgrade Claude Code to version 2.1.64 or later immediately. Users on standard auto-update configurations have received the patch automatically and should verify installation version through the application settings. Manual update users must download version 2.1.64+ from the official Anthropic distribution channel and restart the application. Until patching, implement compensating controls: restrict Claude Code usage to trusted, internally-developed codebases only; prohibit opening projects from untrusted sources, public repositories, or AI-generated code; disable automatic code execution features if available; monitor file system activity for unexpected writes outside project directories using filesystem audit tools (auditd on Linux, fsevents on macOS). Note that disabling symlink creation system-wide may break legitimate development workflows involving package managers and build tools. Review Claude Code workspace permissions and ensure it operates under a restricted user account with minimal filesystem privileges as defense-in-depth. Official remediation guidance: https://github.com/anthropics/claude-code/security/advisories/GHSA-vp62-r36r-9xqp.
More in Claude Code
View allOS command injection in Anthropic Claude Code CLI and Agent SDK for Python allows remote, unauthenticated attackers to e
OS command injection in Anthropic Claude Code CLI and Claude Agent SDK for Python allows local attackers to execute arbi
OS command injection in Anthropic Claude Code CLI and Claude Agent SDK for Python enables arbitrary command execution vi
Claude Code prior to version 2.1.2 has a CVSS 10.0 sandbox escape in the bubblewrap sandboxing mechanism, allowing code
Claude Code is an agentic coding tool. Prior to 1.0.93, Due to errors in parsing shell commands related to $IFS and shor
Claude Code prior to version 2.0.57 failed to properly validate MCP tool inputs, allowing malicious MCP servers to injec
Claude Code is an agentic coding tool. Versions before 1.0.111 were vulnerable to Code Injection due to a bug in the sta
Claude Code versions before 2.0.72 allow authenticated attackers to execute arbitrary commands by exploiting a command p
Sandbox escape and code execution in Anthropic's Claude Code CLI (versions 2.1.38 through 2.1.162) lets a malicious repo
Claude Code is an agentic coding tool. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no au
Claude Code versions prior to 2.0.65 allow attackers to steal Anthropic API keys from users by crafting malicious reposi
Claude Code versions prior to 1.0.111 fail to properly validate trusted domains for WebFetch requests, allowing attacker
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-24033
GHSA-vp62-r36r-9xqp