Vulnerability DatabaseCVE-2026-103435

CVE-2026-103435: 
Claude Code vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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.

Exploitation steps

  1. Reconnaissance: Identify a target system where Claude Code is running in a higher-privileged session (e.g., a developer's workstation or CI/CD pipeline) and confirm the attacker has write access to the shared project workspace.
  2. Select target file: Choose a sensitive file writable by the higher-privileged Claude Code session but impactful if modified (e.g., ~/.bashrc, ~/.ssh/authorized_keys, or a cron file).
  3. Identify a project file: Locate a project file within the workspace that Claude Code is expected to write to during its normal operation (e.g., a source file being edited or generated).
  4. Race condition setup: Write a script or use a tool (e.g., a tight loop with inotifywait on Linux) to monitor for Claude Code's permission check on the target project file.
  5. Atomic symlink swap: Immediately after Claude Code completes its permission check but before it performs the write, atomically replace the project file with a symlink pointing to the sensitive target file outside the sandbox (e.g., ln -sf ~/.bashrc /workspace/project/targetfile.py).
  6. Trigger write: Allow Claude Code to proceed with its write operation; it re-resolves the path and follows the symlink, writing its output (e.g., malicious shell commands) to the sensitive file.
  7. Achieve persistence/escalation: Wait for the higher-privileged user to open a new shell or for the cron job to execute, triggering the injected payload and achieving code execution under the victim's privileges (GitHub Advisory, Red Hat Bugzilla).

Indicators of compromise

  • File System: Unexpected symbolic links in project workspace directories pointing to files outside the project root (e.g., 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.
  • Logs: File system audit logs (e.g., 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.
  • Process: Claude Code process (node or claude) performing file writes to paths outside the expected project working directory, observable via strace, auditd, or eBPF-based monitoring tools.
  • Network: No network-based IOCs are expected for this local privilege escalation vulnerability.

Mitigation and workarounds

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).

Community reactions

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related Claude Code vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-88968HIGH7.7
  • MinimOS logoMinimOS
  • claude-cli
NoYesNov 03, 2026
CVE-2026-103435HIGH7.7
  • Claude Code logoClaude Code
  • @anthropic-ai/claude-code
NoYesOct 07, 2026
CVE-2026-55607HIGH7.7
  • MinimOS logoMinimOS
  • claude-cli
NoYesJun 29, 2026
CVE-2026-86063HIGH7.5
  • MinimOS logoMinimOS
  • claude-cli
NoYesOct 13, 2026
CVE-2026-103012LOW2
  • Claude Code logoClaude Code
  • @anthropic-ai/claude-code
NoYesSep 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management