Claude Code 是一款智能编程工具。在 2.1.251 版本之前,其 Edit 工具在验证目标时,仅通过路径名和符号链接解析进行校验,而未绑定到底层目录的 inode 或文件描述符。在 macOS 系统上,攻击者控制的代码若运行于 Bash 沙箱中,可在验证完成后原子性地用符号链接替换工作区内的父目录,从而导致未沙箱化的 Edit 实现覆盖工作区外的用户可写文件。利用此漏洞需要攻击者控制的代码在沙箱内执行,例如通过恶意仓库或依赖脚本触发。该问题已在 2.1.251 版本中修复。
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| anthropics | claude-code | < 2.1.251 |
affected |
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.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| anthropics | claude-code | < 2.1.251 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC