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.
CVE-2026-46406
This medium-severity CVE scores 6.1 under NVD CVSS v3. EPSS exploit probability: 0.1%, top 96% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.1
- EG Score
- 6.1(medium)
- EPSS
- 4.5%
- KEV
- Not listed
Published
June 25, 2026
Last Modified
June 30, 2026
Advisory Details (1)
Auto-updated Jun 29, 2026Insecure Temporary File in /copy Command Enables Response Disclosure and Symlink-Based File Write · Advisory · anthropics/claude-code · GitHub
https://github.com/anthropics/claude-code/security/advisories/GHSA-4vp2-6q8c-pvq2Vendor Advisories for CVE-2026-46406(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(3)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 13× in last 7d / 16× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-06 20:09 UTCEG score recompute
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 19:23 UTCEG score recompute
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 18:40 UTCEG score recompute
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 17:56 UTCEG score recompute
- 2026-07-02 17:11 UTCEG score recompute
- 2026-07-01 16:21 UTCEG score recompute▲ 1.70
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 18:32 UTCNVD updateCVSS v3 → 6.1
- 2026-06-30 15:37 UTCEG score recompute
- 2026-06-29 14:53 UTCEG score recompute▲ 4.40
- 2026-06-29 14:52 UTCMITRE cvelistV5CVSS v3 → 4.4 · CVSS v4 → 4.4
- 2026-06-25 17:46 UTCEG score recompute
Related CVEs(same CWE)
Same CWE
10 shownCWE-59 · CWE-200
Frequently asked(5)
What is CVE-2026-46406?
When was CVE-2026-46406 disclosed?
Is CVE-2026-46406 actively exploited?
What is the CVSS score of CVE-2026-46406?
How do I remediate CVE-2026-46406?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-46406
Is Your Infrastructure Affected by CVE-2026-46406?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.