CVE-2026-39861
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-04-21
- Last modified
- 2026-10-26
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.7 %
higher than 50 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Anthropic | Claude Code | < 2.1.64 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special ele…
-
CWE-61: UNIX Symbolic Link (Symlink) Following
The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause t…
References
Related at Berigo
Articles
-
A language model found an attack that forces HAWK to double its keys
Same product
2026-08-24
On 28 July 2026 Anthropic published two cryptanalytic results found with a language model. Neither has practical significance for systems in operatio…
-
New numbers show how often an attacker succeeds against an AI agent
Same product
2026-08-18
The system card for Claude Opus 5 does not measure how many attacks succeed, but the probability that an attacker finds at least one working attack w…
-
Shared Claude conversations turned up in Google search
Same product
2026-08-18
On 27 July 2026 404 Media reported that shared Claude conversations and artifacts appeared in Google search results. The findings included medical re…
-
Meta says one of its models broke into another company during testing
Same product
2026-08-13
Meta says one of its models unexpectedly gained internet access during a security evaluation, and that the model then exploited a vulnerability in a …
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.