Skip to main content

Claude Code CVE-2026-39861

| EUVDEUVD-2026-24033 HIGH
Path Traversal (CWE-22)
2026-04-21 GitHub_M GHSA-vp62-r36r-9xqp
7.7
CVSS 4.0 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
7.7 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
X

Lifecycle Timeline

8
Patch released
Apr 23, 2026 - 18:36 nvd
Patch available
Re-analysis Queued
Apr 21, 2026 - 16:22 vuln.today
cvss_changed
Patch available
Apr 21, 2026 - 02:01 EUVD
Analysis Generated
Apr 21, 2026 - 01:23 vuln.today
CVSS changed
Apr 21, 2026 - 01:22 NVD
7.7 (HIGH)
EUVD ID Assigned
Apr 21, 2026 - 01:15 euvd
EUVD-2026-24033
Analysis Generated
Apr 21, 2026 - 01:15 vuln.today
CVE Published
Apr 21, 2026 - 00:56 nvd
HIGH 7.7

DescriptionGitHub 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.

CVE-2026-35022 CRITICAL POC
9.3 Apr 06

OS command injection in Anthropic Claude Code CLI and Agent SDK for Python allows remote, unauthenticated attackers to e

CVE-2026-35020 HIGH POC
8.6 Apr 06

OS command injection in Anthropic Claude Code CLI and Claude Agent SDK for Python allows local attackers to execute arbi

CVE-2026-35021 HIGH POC
8.4 Apr 06

OS command injection in Anthropic Claude Code CLI and Claude Agent SDK for Python enables arbitrary command execution vi

CVE-2026-25725 CRITICAL
10.0 Feb 06

Claude Code prior to version 2.1.2 has a CVSS 10.0 sandbox escape in the bubblewrap sandboxing mechanism, allowing code

CVE-2025-66032 CRITICAL POC
9.8 Dec 03

Claude Code is an agentic coding tool. Prior to 1.0.93, Due to errors in parsing shell commands related to $IFS and shor

CVE-2026-25722 CRITICAL
9.1 Feb 06

Claude Code prior to version 2.0.57 failed to properly validate MCP tool inputs, allowing malicious MCP servers to injec

CVE-2025-59536 HIGH POC
8.8 Oct 03

Claude Code is an agentic coding tool. Versions before 1.0.111 were vulnerable to Code Injection due to a bug in the sta

CVE-2026-24887 HIGH POC
8.8 Feb 03

Claude Code versions before 2.0.72 allow authenticated attackers to execute arbitrary commands by exploiting a command p

CVE-2026-55607 HIGH
7.7 Jun 29

Sandbox escape and code execution in Anthropic's Claude Code CLI (versions 2.1.38 through 2.1.162) lets a malicious repo

CVE-2025-59828 HIGH
7.7 Sep 24

Claude Code is an agentic coding tool. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no au

CVE-2026-21852 HIGH POC
7.5 Jan 21

Claude Code versions prior to 2.0.65 allow attackers to steal Anthropic API keys from users by crafting malicious reposi

CVE-2026-24052 HIGH
7.4 Feb 03

Claude Code versions prior to 1.0.111 fail to properly validate trusted domains for WebFetch requests, allowing attacker

Share

CVE-2026-39861 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy