Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| npm:@anthropic-ai/claude-code | < 2.1.251 | 2.1.251 |
Claude Code validated Edit tool targets using point-in-time pathname and symlink resolution that was not bound to the underlying directory inodes or file descriptors. On macOS, a process running inside Claude Code's Bash sandbox could exploit the resulting time-of-check to time-of-use window by atomically swapping an in-workspace parent directory with a symlink after validation completed, causing the unsandboxed Edit implementation to overwrite an attacker-selected user-writable file outside th…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/11/10 07:42、GitHub Advisory Databaseが「Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「重要」(high) です。関連する技術: JavaScript / Node.js、Anthropic (Claude)、macOS。CVE: CVE-2026-88968。