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_app2026/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。