Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
anthropics claude-code
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Claude Code 是一款智能编程工具。在 2.1.251 版本之前,其 Edit 工具在验证目标时,仅通过路径名和符号链接解析进行校验,而未绑定到底层目录的 inode 或文件描述符。在 macOS 系统上,攻击者控制的代码若运行于 Bash 沙箱中,可在验证完成后原子性地用符号链接替换工作区内的父目录,从而导致未沙箱化的 Edit 实现覆盖工作区外的用户可写文件。利用此漏洞需要攻击者控制的代码在沙箱内执行,例如通过恶意仓库或依赖脚本触发。该问题已在 2.1.251 版本中修复。

CVSS 7.7 · High EPSS 0.32% · P25

Affected Version Matrix 1

VendorProduct Version RangeStatus
anthropics claude-code < 2.1.251 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-88968

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
anthropics claude-code < 2.1.251 -

II. Public POCs for CVE-2026-88968

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-88968

请登录查看更多情报信息。

Other References for CVE-2026-88968 (2)

IV. Related Vulnerabilities