Browse / Tool and Agent Misuse / CVE-2025-59829
Claude Code permission deny bypass through symlink
- 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:N/SC:N/SI:N/SA:N
- EPSS
- 0.4% chance of exploitation in 30 days
How it works, in short
Claude Code's deny rules matched the path string rather than the symlink target, so a denied file could be read through a symlink. (Our summary, written by a model. The source text is below.)
Details
Claude Code failed to account for symlinks when checking permission deny rules. If a user explicitly denied Claude Code access to a file and Claude Code had access to a symlink pointing to that file, it was possible for Claude Code to access the file.
Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to the latest version.
Thank you to https://hackerone.com/vinai for reporting this issue!
References
- https://github.com/anthropics/claude-code/security/advisories/GHSA-66m2-gx93-v996
- https://nvd.nist.gov/vuln/detail/CVE-2025-59829
- https://github.com/anthropics/claude-code
Source: GitHub Advisory Database, used under CC BY 4.0.