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-25724: CWE-61: UNIX Symbolic Link (Symlink) Following in anthropics claude-code

0
Low
VulnerabilityCVE-2026-25724cvecve-2026-25724cwe-61cwe-285
Published: Fri Feb 06 2026 (02/06/2026, 17:53:16 UTC)
Source: CVE Database V5
Vendor/Project: anthropics
Product: claude-code

Description

Claude Code is an agentic coding tool. Prior to version 2.1.7, Claude Code failed to strictly enforce deny rules configured in settings.json when accessing files through symbolic links. If a user explicitly denied Claude Code access to a file (such as /etc/passwd) and Claude Code had access to a symbolic link pointing to that file, it was possible for Claude Code to read the restricted file through the symlink without triggering deny rule enforcement. This issue has been patched in version 2.1.7.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/27/2026, 22:00:05 UTC

Technical Analysis

The vulnerability CVE-2026-25724 affects anthropics' Claude Code, an agentic coding tool, in versions before 2.1.7. Claude Code uses a settings.json file to enforce deny rules restricting access to certain files. However, the software failed to strictly enforce these deny rules when files were accessed via symbolic links. Specifically, if a user denied access to a sensitive file such as /etc/passwd, Claude Code could still read the file if it was accessed through a symlink pointing to it. This occurs because the deny rule enforcement did not correctly resolve or check the target of the symlink, allowing unauthorized file reads. The vulnerability is categorized under CWE-61 (Improper Handling of Symbolic Links) and CWE-285 (Improper Authorization). The CVSS 4.0 base score is 2.3, indicating low severity, with attack vector being network, low complexity, no privileges required, but requiring user interaction. The impact on confidentiality, integrity, and availability is low. The issue was patched in version 2.1.7 by improving deny rule enforcement to correctly handle symlink targets. There are no known exploits in the wild, and the vulnerability was publicly disclosed on February 6, 2026.

Potential Impact

The primary impact of this vulnerability is unauthorized disclosure of sensitive files that were intended to be protected by deny rules in Claude Code. An attacker or user could leverage symlinks to bypass access restrictions and read files such as /etc/passwd, potentially exposing user account information. While this does not directly allow modification or deletion of files, the exposure of sensitive data can aid further attacks or reconnaissance. The vulnerability requires user interaction and network access but no privileges, which lowers the risk somewhat. The scope is limited to environments where Claude Code is used and deny rules are configured. Since Claude Code is an agentic coding tool, organizations relying on it for code generation or automation may be at risk of unintended data leaks. Overall, the impact is low but should not be ignored in sensitive environments.

Mitigation Recommendations

Organizations should upgrade anthropics Claude Code to version 2.1.7 or later, where the vulnerability is patched. Until upgrading, administrators should audit and restrict the use of symbolic links in directories accessed by Claude Code, especially those pointing to sensitive files. Implement file system permissions to limit the creation and use of symlinks by untrusted users. Review and tighten deny rules in settings.json to minimize exposure. Additionally, monitor logs for unusual file access patterns involving symlinks. Employ runtime application self-protection (RASP) or endpoint detection to detect anomalous file reads. Educate users about the risks of symlink abuse and enforce least privilege principles for users running Claude Code. Finally, consider isolating Claude Code execution environments to limit potential data exposure.

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-02-05T16:48:00.426Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69862fadf9fa50a62f2569b8

Added to database: 2/6/2026, 6:15:09 PM

Last enriched: 3/27/2026, 10:00:05 PM

Last updated: 5/8/2026, 9:19:13 PM

Views: 134

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