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

- Severity: Medium 4.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-25T16:53:00.000Z
- Modified: 2026-10-25T21:10:00.770Z
- Also known as: GHSA-4vp2-6q8c-pvq2
- Weaknesses: CWE-59, CWE-200, CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- anthropics claude-code: >= 2.1.59, < 2.1.128
- @anthropic-ai/claude-code (npm): from 2.1.59 before 2.1.128
- anthropic claude_code: from 2.1.58 before 2.1.128

## Every score

- GitHub_M: CVSS:4.0 4.4 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H`

## References

- <https://github.com/anthropics/claude-code/security/advisories/GHSA-4vp2-6q8c-pvq2> (vendor-advisory, web)
- <https://github.com/anthropics/claude-code> (package)

## Sources

- CVE List: [CVE-2026-46406](https://www.cve.org/CVERecord?id=CVE-2026-46406), CVE Terms of Use, modified 2026-06-29
- GitHub Advisory Database: [GHSA-4vp2-6q8c-pvq2](https://github.com/advisories/GHSA-4vp2-6q8c-pvq2), CC-BY-4.0, modified 2026-07-09
- NVD: [CVE-2026-46406](https://nvd.nist.gov/vuln/detail/CVE-2026-46406), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-46406 · Whole record: https://cve.day/CVE-2026-46406.json · Rebuilt by cve.day 2026-11-25T22:59:26.615Z
