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

Published Oct 7, 2026
·
Updated

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/ch4ck0 for reporting this issue.

Affected Software

1 affected component
Anthropic Claude Code

Event History

Oct 7, 2026
CVE Published
via MITRE·12:50 PM
Data Sourced
via MITRE·12:50 PM
DescriptionWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

The issue is relevant where a lower-privileged attacker can write to a shared Claude Code workspace while Claude Code runs in a higher-privileged session. The attacker must be able to replace a project file with a symlink during the vulnerable write window.

2

Does exploitation require any user interaction or special access?

The attacker does not need prior privileges in the higher-privileged session, but does need write access to the shared workspace and must win a race condition against Claude Code's write operation. The CVSS vector also indicates user interaction is required.

3

Are standard installations already fixed?

Users on standard Claude Code auto-update have already received the fix. Users who perform manual updates should update to the latest version.

4

What is the risk if updates cannot be applied immediately?

Avoid running higher-privileged Claude Code sessions in workspaces writable by lower-privileged or untrusted users. Restrict write access to shared project directories to reduce the opportunity to replace files with symlinks during writes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203