CVE-2026-46406: Claude Code - Broken Access Control
- Cve: CVE-2026-46406
- Name: Claude Code - Broken Access Control
- 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.
- Impact: Local attackers can read sensitive privileged user responses or overwrite arbitrary files, potentially leading to information disclosure and data tampering.
- Remediation: Update to version 2.1.128 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: logged_in
- Requirements: Local unprivileged user and privileged user running /copy command required
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H
- Epss score: 0.00154
- Epss percentile: 0.0445
- Assignee: [email protected]
- Published at: 2026-06-29T15:16:41Z
- Age in days: 148
- Modified at: 2026-10-25T21:10:00Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-46406
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-59 | Improper Link Resolution Before File Access |
Hackerone
- Reports: 4
- Rank: 1556
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/anthropics/claude-code/security/advisories/GHSA-4vp2-6q8c-pvq2 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| anthropic:claude_code | >= 2.1.58, < 2.1.128 | no | nvd | /v1/products/anthropic/claude_code |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| anthropics/claude-code | package, security_advisory | yes | /v1/repositories/anthropics/claude-code |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Hackerone reports: 4
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts