Browse / Tool and Agent Misuse / CVE-2026-25724
Claude Code has Permission Deny Bypass Through Symbolic Links
- Class
- Tool and Agent Misuse (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- @anthropic-ai/claude-code (npm)
- Gets past
- Path restriction
- CVSS
- 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
- EPSS
- 0.5% chance of exploitation in 30 days
How it works, in short
Deny rules check the requested path but not its symlink target, so the agent can read a file that a user explicitly blocked. (Our summary, written by a model. The source text is below.)
Details
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.
Users on standard Claude Code auto-update received this fix automatically. Users performing manual updates are advised to update to the latest version.
Claude Code thanks https://hackerone.com/ofirh for reporting this issue.
References
- https://github.com/anthropics/claude-code/security/advisories/GHSA-4q92-rfm6-2cqx
- https://nvd.nist.gov/vuln/detail/CVE-2026-25724
- https://github.com/anthropics/claude-code
- https://www.terra.security/blog/when-ai-becomes-the-attack-surface-lessons-from-discovering-cve-2026-25724
Source: GitHub Advisory Database, used under CC BY 4.0.