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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-46406— Claude Code: Insecure Temporary File in /copy Command Enables Response Disclosure and Symlink-Based File Write

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.

anthropics claude-code是anthropics的AI辅助编程工具。 Anthropic Claude Code 2.1.59版本至2.1.128之前版本存在安全漏洞,该漏洞源于/claude/copy命令将响应写入硬编码的可预测路径,未进行UID隔离、随机性或符号链接保护,可能导致本地普通用户读取特权用户的响应内容,且本地攻击者可预先创建目录并放置符号链接,使进程覆盖攻击者选择的文件。

AI Predicted 6.5 Difficulty: Moderate EPSS 0.15% · P4

Affected Version Matrix 1

VendorProduct Version RangeStatus
anthropics claude-code >= 2.1.59, < 2.1.128 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-46406

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: Insecure Temporary File in /copy Command Enables Response Disclosure and Symlink-Based File Write
Source: CVE Program / CVE List V5
Vulnerability Description
Claude Code is an agentic coding tool. From 2.1.59 until 2.1.128, the Claude Code /copy command wrote responses to a hardcoded, predictable path (/tmp/claude/response.md) without UID isolation, randomness, or symlink protection. The file was created world-readable (0644) in a world-traversable directory (0755), allowing any local user to read a privileged user's Claude response, which could contain secrets or credentials. Additionally, because the path was static and predictable, a local attacker could pre-create the directory and plant a symlink at the expected file path, causing the privileged process to follow the symlink and overwrite an attacker-chosen file with the response text. Exploiting this required a local unprivileged user on the same system and a privileged user to run the /copy command. This vulnerability is fixed in 2.1.128.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: CVE Program / CVE List V5
Vulnerability Title
Anthropic Claude Code 信息泄露漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
anthropics claude-code是anthropics的AI辅助编程工具。 Anthropic Claude Code 2.1.59版本至2.1.128之前版本存在安全漏洞,该漏洞源于/claude/copy命令将响应写入硬编码的可预测路径,未进行UID隔离、随机性或符号链接保护,可能导致本地普通用户读取特权用户的响应内容,且本地攻击者可预先创建目录并放置符号链接,使进程覆盖攻击者选择的文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
anthropics claude-code >= 2.1.59, < 2.1.128 -

II. Public POCs for CVE-2026-46406

# 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-46406

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

Vendor Advisories for CVE-2026-46406 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-46406

No comments yet


Leave a comment