
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25724 is a permission deny bypass vulnerability in Anthropic's Claude Code agentic coding tool, caused by insufficient enforcement of deny rules when files are accessed via symbolic links. Prior to version 2.1.7, if a user explicitly denied Claude Code access to a file (e.g., /etc/passwd) in settings.json, Claude Code could still read that file if accessed through a symbolic link pointing to it, without triggering the deny rule. The vulnerability affects all versions of the @anthropic-ai/claude-code npm package before 2.1.7. It was published on February 6, 2026, and carries a CVSS v4 base score of 2.3 (Low) and a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory, Anthropic Advisory).
The root cause is classified under CWE-61 (UNIX Symbolic Link Following) and CWE-285 (Improper Authorization). Claude Code's file access control logic evaluated deny rules against the path provided by the user or the tool, but failed to resolve symbolic links before performing the authorization check — meaning a symlink pointing to a restricted file would not match the deny rule for the target file's canonical path. An attacker (or a malicious prompt/task) with access to a directory where symlinks can be created could craft a symlink pointing to a sensitive file such as /etc/passwd, /etc/shadow, or application credential files, and instruct Claude Code to read the symlink path, bypassing configured restrictions. The attack requires that Claude Code have filesystem access to a directory where a symlink can be placed, and that a user or automated workflow interact with the tool (GitHub Advisory, Anthropic Advisory).
Successful exploitation allows unauthorized read access to files that have been explicitly denied in Claude Code's settings.json configuration, bypassing the intended access control boundary. Sensitive system files (e.g., /etc/passwd, /etc/shadow) and application secrets such as database passwords or API keys stored in configuration files could be exposed. The impact is primarily a confidentiality breach; integrity and availability of the system are not directly affected by this vulnerability (GitHub Advisory, Feedly).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure (Feedly). The EPSS score is approximately 0.045–0.061%, placing it in the 19th percentile for exploitation likelihood within 30 days (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. The vulnerability was responsibly disclosed via HackerOne by researcher ofirh (Anthropic Advisory).
settings.json (e.g., /etc/passwd or a file containing database credentials).ln -s /etc/passwd ./allowed_dir/fake_config.txt../allowed_dir/fake_config.txt). Because the deny rule checks the symlink path rather than the resolved canonical path, the access control check is bypassed./etc/passwd, /etc/shadow, .env, config.json).settings.json deny rules; access to system files from the Claude Code process user account.Anthropic has patched this vulnerability in Claude Code version 2.1.7. Users on standard Claude Code auto-update received the fix automatically; users performing manual updates should upgrade to version 2.1.7 or later immediately. As a supplementary measure, administrators should audit settings.json deny rules to ensure they are correctly configured, review file access logs for suspicious symlink-based access attempts prior to patching, and consider implementing OS-level filesystem controls to restrict symlink creation in directories accessible to Claude Code (Anthropic Advisory, GitHub Advisory).
Terra Security published a blog post referencing the discovery of CVE-2026-25724 in the context of broader research into exploitable flaws in AI-driven applications and copilots, which was covered by Business Wire and AI Journ in February 2026 (Business Wire). A Reddit thread in the r/cybersecurity community discussed the symlink permission bypass in Claude Code, reflecting moderate community interest. A dev.to post titled "Claude Code has been reading your database password this whole time" highlighted the practical risk of the vulnerability to developers using Claude Code in projects containing credential files.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."