CVE-2026-39861CWE-22CWE-61

Claude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace

High · published April 21, 2026

CVSS v4.0
7.7
EPSS
1%
Percentile
56.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
7.7 · HIGH
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
EPSS
0.00804 · 56.3th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-61 · UNIX Symbolic Link (Symlink) Following
Published
2026-04-21T00:56Z
EPSS history
Timeline
  • 21 APR 00:56Z
    Claude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace
    cvelistv5