
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-103435 is a Time-of-Check to Time-of-Use (TOCTOU) arbitrary file write vulnerability in Anthropic's Claude Code (@anthropic-ai/claude-code). The flaw allows a local attacker with write access to a shared workspace to replace a project file with a symlink between Claude Code's permission check and its write operation, causing output to be written to arbitrary files outside the project sandbox. All versions of @anthropic-ai/claude-code prior to 2.1.129 are affected. The vulnerability was reported via HackerOne by researcher c_h4ck_0, published on October 7, 2026, and carries a CVSS v3.1 score of 7.0 (High) and a CVSS v4.0 score of 7.7 (High) (GitHub Advisory, Red Hat CVE).
The root cause is a TOCTOU race condition (CWE-367) combined with symlink following (CWE-61) and path traversal (CWE-22). Claude Code validates that a target file path resides within the project working directory at permission-check time, but re-resolves the path at write time without repeating that validation. An attacker who can write to the shared workspace can atomically replace a legitimate project file with a Unix symbolic link pointing to a sensitive file outside the sandbox (e.g., ~/.bashrc or /etc/cron.d/) during the window between the check and the write. Exploitation requires winning a race condition and having write access to the shared workspace — preconditions that are realistic in multi-user or CI/CD environments where a lower-privileged process shares a workspace with a higher-privileged Claude Code session (GitHub Advisory, Red Hat Bugzilla).
Successful exploitation enables a lower-privileged attacker to redirect Claude Code's file write operations to arbitrary files accessible by the higher-privileged session running Claude Code, including sensitive shell configuration files (e.g., .bashrc, .profile), SSH authorized keys, or cron job definitions. This can lead to privilege escalation, persistent code execution under the victim's account, and potential full system compromise. Confidentiality, integrity, and availability are all rated High in both CVSS v3.1 and v4.0 assessments (GitHub Advisory, Feedly).
As of the disclosure date, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The EPSS score is approximately 0.0025 (0.25%), reflecting low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is constrained by the need to win a race condition and requires local write access to the shared workspace, limiting the attacker pool to users already present on the system or in the same collaborative environment.
~/.bashrc, ~/.ssh/authorized_keys, or a cron file).inotifywait on Linux) to monitor for Claude Code's permission check on the target project file.ln -sf ~/.bashrc /workspace/project/targetfile.py).ls -la /workspace/project/ revealing symlinks to ~/.bashrc or /etc/cron.d/); unexpected modifications to shell configuration files (~/.bashrc, ~/.profile, ~/.bash_profile) or SSH authorized_keys with timestamps correlating to Claude Code write operations.auditd) showing symlink or rename syscalls on project files immediately followed by write or open syscalls by the Claude Code process on files outside the project directory; inotify events showing rapid file replacement in workspace directories.node or claude) performing file writes to paths outside the expected project working directory, observable via strace, auditd, or eBPF-based monitoring tools.Update @anthropic-ai/claude-code to version 2.1.129 or later; users on the standard auto-update channel have already received this fix automatically (GitHub Advisory). For users unable to update immediately, restrict write access to shared workspaces to only trusted users, and implement file system monitoring (e.g., auditd or inotifywait) to detect symlink creation in project directories. Where the underlying filesystem supports it, consider using mount options (e.g., nosymfollow on Linux) to prevent symlink following in workspace directories as an additional defense-in-depth measure (Feedly).
The vulnerability was reported through HackerOne by researcher c_h4ck_0 and acknowledged by Anthropic in the official GitHub Security Advisory published October 5, 2026 (GitHub Advisory). Red Hat tracked the issue via Bugzilla (Bug 2547427) as part of their security response process (Red Hat Bugzilla). No significant broader media coverage or notable public researcher commentary beyond the official advisory has been identified at this time.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."