7.7Yüksek

CVE-2026-88968Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace

anthropics claude-code Yayım: (7 gün önce)

Açıklama

Claude Code is an agentic coding tool. Prior to 2.1.251, the Edit tool validates a target using pathname and symlink resolution that is not bound to the underlying directory inode or file descriptor. On macOS, attacker-controlled code running in the Bash sandbox can atomically replace an in-workspace parent directory with a symlink after validation, causing the unsandboxed Edit implementation to overwrite a user-writable file outside the workspace. Exploitation requires attacker-controlled code to run inside the sandbox, such as from a malicious repository or dependency script. This issue is fixed in version 2.1.251.

Zayıflık türü (CWE): CWE-59CWE-367

Veri: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Bilgiler kaynaktaki haliyle, İngilizce yayımlanır.

Etkilenen ürünler ve sürümler

ÜreticiÜrünSürümler
anthropics claude-code < 2.1.251

Kaynaklar ve yamalar