Skip to content
Heist/ feed
High

Arbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude Code

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-103435

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-103435

@anthropic-ai/claude-code

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "Anthropic",
    "product": "@anthropic-ai/claude-code",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "2.1.129",
        "versionType": "semver"
      }
    ]
  }
]
Related CVEs
CVE-2026-103435

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#11881 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement