CVE Catalog

CVE-2026-103435

HighCVSS 7.7
Published: Updated: Translated: NVD NIST

Summary

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 TOCTOU gap allowed an attacker with write access to the workspace to atomically replace a project file with a symlink, causing Claude Code to follow the symlink and write output to an arbitrary file outside the project sandbox. Exploitation required winning a race condition 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 auto-update have received the fix; manual updates should update to the latest version.

Risk Assessment

An attacker could redirect writes to sensitive files outside the sandbox, potentially leading to system configuration modification and privilege escalation.

Recommendation

Update Claude Code to the latest version to eliminate the TOCTOU vulnerability and prevent unauthorized file writes.

Other vulnerabilities in Claude Code

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS