CVE-2026-25724
Access Control in Anthropic Claude Code ≤ 2.1.7
Raw vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-25724 is a low-severity UNIX Symbolic Link (Symlink) Following (CWE-61) vulnerability in Anthropic Claude Code. Its CVSS base score is 2.3 (Low).
Operationally, exploitation aligns with the MITRE ATT&CK technique Escape to Host (T1611); ranked at the 49th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
This vulnerability is AI-related — categorised as Enterprise AI Assistants; in the Privacy and Disclosure risk domain.
The strongest mitigations our analysis identified map to AC-24 (Access Control Decisions) and AC-25 (Reference Monitor) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
Claude Code, an agentic coding tool from Anthropic, is affected by CVE-2026-25724 in versions prior to 2.1.7. The vulnerability stems from a failure to strictly enforce deny rules configured in settings.json when accessing files through symbolic links. Specifically, if a user denied access to a sensitive file like /etc/passwd, Claude Code could still read it via a symbolic link to which it had access, bypassing the deny rule enforcement. This issue is rated 7.5 on the CVSS v3.1 scale (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) and maps to CWE-61 (Symbolic Link Following) and CWE-285 (Improper Authorization).
Attackers can exploit this vulnerability remotely without privileges or user interaction over a network connection with low complexity. By controlling or influencing a symbolic link that Claude Code accesses during its operations, an attacker can trick the tool into reading restricted files, achieving high-impact unauthorized disclosure of confidential information such as system passwords or other sensitive data pointed to by the symlinks.
The GitHub security advisory (GHSA-4q92-rfm6-2cqx) and a Terra Security blog post detail the patch in Claude Code version 2.1.7, which enforces deny rules consistently even for symlink access. Security practitioners should upgrade to version 2.1.7 or later and review settings.json configurations to ensure proper deny rules are in place, particularly in environments where Claude Code handles file operations.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-5614
Vulnerability Data
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…
more
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.
- CWE(s)
AI Security AnalysisAI
- AI Category
- Enterprise AI Assistants
- Risk Domain
- Privacy and Disclosure
- OWASP Top 10 for LLMs 2025
- None mapped
- Classification Reason
- Matched keywords: claude
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
- 2 hardening rules · 2 OS baselines
V5.2.5
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Mandates that access-control decisions are made and applied to each request before access occurs.
Requires a tamperproof, always-invoked reference monitor that performs authorization checks.
Directly requires enforcement of approved authorizations for every access request, stopping improper or missing checks.
Limits granted privileges so that even a bypassed check affects fewer resources.
Information-flow enforcement on file operations must follow the resolved target rather than the link name, blocking unauthorized data movement via symlinks.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly prevent introduction of symlink-following flaws in file-handling code.
Vulnerability identification can discover existing symlink issues but does not prevent or remediate them in code.
Least-privilege access policies can limit damage from symlink attacks but do not address the coding flaw itself.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect symlink-following vulnerabilities before deployment, covering most of the weakness.
A.8.3's access restriction mechanisms — configuration controls, per-identity permissions, dynamic access management with authentication requirements — block most exploitation of missing or incorrect authorization checks at the system and configuration layer even when the application code itself has CWE-285; the remainder is application-level authorization flaws whose specific code paths are not fully covered by the system-level access controls A.8.3 mandates.
Independent reviewers evaluate whether authorization logic matches policy, thereby reducing the window in which incorrect or missing authorization checks remain in production.
Education and training for technical teams can raise awareness of symlink-following risks so developers handle file paths defensively, but this is a specialized implementation defect that general awareness rarely covers and the practice is fallible, so only a minority of instances are prevented.
Secure-coding standards mandate explicit symlink checks and safe open patterns, fully mitigating CWE-61.
A.8.8's reach is DISCLOSURE-based (third-party components with published advisories), and CWE-61 does commonly surface as CVEs (multiple examples listed), so the disclosed share is findable — but most symlink-following bugs are implementation defects in first-party code that never appear in any advisory, capping the rung at `partial`.
Hardening callouts derived
Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.
Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.
Oracle Linux 8 (1 rule)
- V-248577 OL 8 must enable kernel parameters to enforce Discretionary Access Control (DAC) on symlinks. blocks CWE-61