Skip to content
High 7.7

Claude Codeの編集ツールに脆弱性、ワークスペース外のファイルを上書きされるおそれ

CVE-2026-88968 First seen on SecPulse

Summary

Claude Codeの2.1.251より前の版では、編集ツールがファイルの検証とそのあとの書き込みの間に、親ディレクトリをシンボリックリンクにすり替えられる脆弱性(CVE-2026-88968)があります。macOSでBashのサンドボックス内で動くコードが悪用すると、ワークスペース外のユーザーが書き込めるファイルが上書きされるおそれがあります。修正版の2.1.251で直っているので、速やかに更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Claude Codeの2.1.251より前の版では、編集ツールがファイルの検証とそのあとの書き込みの間に、親ディレクトリをシンボリックリンクにすり替えられる脆弱性(CVE-2026-88968)があります。macOSでBashのサンドボックス内で動くコードが悪用すると、ワークスペース外のユーザーが書き込めるファイルが上書きされるおそれがあります。修正版の2.1.251で直っているので、速やかに更新してください。

Affected packages

PackageAffected → Fixed
anthropicsclaude-code —
npm@anthropic-ai/claude-code
< 2.1.251→ 2.1.251
Original description The description as published by the source.

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 the workspace. Exploiting this required the ability to run attacker-controlled code inside the sandbox, such as through a malicious repository or dependency script.

Users on standard Claude Code auto-update have received this fix automatically. Users performing manual updates are advised to update to the latest version.

Claude Code thanks hackerone.com/mahoraga007 (Sunder Singh) for reporting this issue.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details