{"id":"CVE-2026-103435","published":"2026-10-07T12:50:02Z","modified":"2026-10-07T14:39:13Z","title":"Arbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude Code","vendor":"Anthropic","product":"@anthropic-ai/claude-code","tier":"tail","description":{"text":"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.\n\nUsers on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.\n\nThank you to hackerone.com/c_h4ck_0 for reporting this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00383,"percentile":0.24124,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5j29-h97v-84ch","tags":[]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":4.82},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"anthropic","affectedVersions":[{"vendor":"Anthropic","product":"@anthropic-ai/claude-code","versions":["< 2.1.129"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-07T14:39:02.916533Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-94319","exploited":false,"provenance":"source"}}