10

CVE-2026-39861: Claude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace

Analyzed
AliasesGHSA-vp62-r36r-9xqp
Published 21-04-2026Last modified 21-04-2026

Vulnerability summary

CVE-2026-39861 is a critical (CVSS 10.0) Path Traversal vulnerability in anthropic claude_code. EPSS estimates a 0.80% chance of exploitation in the next 30 days, higher than 56.2% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
10.0/10
010
Critical · v3.1 (NVD)
EPSS score
0.80%
0%100%
Low · +0.09 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 21-04-2026
    PublishedVulnerability first disclosed.
  2. 21-04-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

5 scores · 3 sources · 2 versions

EPSS trend

Probability

0.80%

Chance of exploitation in the next 30 days

Percentile

56%

Versus all other CVEs

30-day change

Increase +0.09 pp

From 0.71% on 22-09-2026

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

@anthropic-ai1 product
  • claude-code< 2.1.64
Anthropic1 product
Anthropics1 product

3 vendors · 3 products

References

3 links