CVE-2026-103435
published high CVSS 4.0 · 7.7Arbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude Code
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Anthropic | — | @anthropic-ai/claude-code0 to < 2.1.129 | Affected | Not stated | Anthropic |
Description
Claude Code validated that a target file path resided within the project working directory at permission-check time, but re-resolved the path at write time without repeating that validation. This time-of-check to time-of-use (TOCTOU) gap allowed an attacker who could write to the workspace to atomically replace a project file with a symlink, causing Claude Code to follow the symlink and write its output to an arbitrary file outside the project sandbox. Exploitation required the ability to win a race condition against the write operation and write access to the shared workspace, enabling a lower-privileged attacker to redirect benign edits to sensitive files (e.g., shell configuration) in a higher-privileged session. Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version. Thank you to hackerone.com/c_h4ck_0 for reporting this issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- Anthropic · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Anthropic | @anthropic-ai/claude-code | 0 to < 2.1.129 (affected · semver) | Anthropic · cna |
Weaknesses
3- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-61 CWE-61 UNIX Symbolic Link (Symlink) Following
- CWE-367 CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
1Provider assertions
2Anthropic · cna
Arbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude Code
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d4ee603248635fd2323af1a01c9de757f683769700163da576f299d7815873d5
- Ingested
- 07 Oct 2026, 15:05:12 UTC
- Source record
- Official CVE record