# CVE-2026-103435: Arbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude Code

- Severity: High 7.7 (CVSS:4.0, scored by Anthropic) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-10-07T12:50:02.572Z
- Modified: 2026-10-07T15:16:57.037Z
- Weaknesses: CWE-22, CWE-61, CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Anthropic @anthropic-ai/claude-code: before 2.1.129

## References

- <https://github.com/anthropics/claude-code/security/advisories/GHSA-5j29-h97v-84ch>

## Sources

- CVE List: [CVE-2026-103435](https://www.cve.org/CVERecord?id=CVE-2026-103435), CVE Terms of Use, modified 2026-10-07
- NVD: [CVE-2026-103435](https://nvd.nist.gov/vuln/detail/CVE-2026-103435), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2026-103435 · Whole record: https://cve.day/CVE-2026-103435.json · Rebuilt by cve.day 2026-11-25T22:59:42.713Z
