Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-46406: CWE-59: Improper Link Resolution Before File Access ('Link Following') in anthropics claude-code

0
Medium
VulnerabilityCVE-2026-46406cvecve-2026-46406cwe-59cwe-200cwe-377
Published: 06/29/2026 (06/29/2026, 14:03:14 UTC)
Source: CVE Database V5
Vendor/Project: anthropics
Product: claude-code

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.

CVSS v4.0

Score 4.4medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Active
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
anthropics/claude-code
pkg:github/anthropics/claude-code
Affected versions
>=2.1.59 <2.1.128

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/29/2026, 15:08:36 UTC

Technical Analysis

The vulnerability in anthropics claude-code involves improper link resolution before file access (CWE-59). Specifically, the /copy command writes responses to a hardcoded path (/tmp/claude/response.md) that is world-readable and located in a world-traversable directory. Because the path is predictable and lacks UID isolation, randomness, or symlink protection, a local attacker can read privileged users' responses or create a symlink to cause the privileged process to overwrite arbitrary files. Exploitation requires a local unprivileged user and a privileged user running the /copy command. This vulnerability is resolved in version 2.1.128.

Potential Impact

An attacker with local unprivileged access can read sensitive information from privileged users due to world-readable files in a predictable location. Additionally, the attacker can cause arbitrary file overwrite by exploiting symlink following, potentially leading to privilege escalation or data corruption. The vulnerability requires local access and user interaction with the privileged /copy command.

Mitigation Recommendations

This vulnerability is fixed in claude-code version 2.1.128. Users should upgrade to version 2.1.128 or later to remediate the issue. No official patch or temporary fix is indicated other than upgrading. Until upgraded, restrict local user access and avoid running the /copy command with elevated privileges if possible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-13T21:04:10.932Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a42868627e9c7971906ce01

Added to database: 06/29/2026, 14:51:50 UTC

Last enriched: 06/29/2026, 15:08:36 UTC

Last updated: 06/29/2026, 21:02:07 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses