Skip to content
HighVulnerabilityLLM-specific

GHSA-q5hj-mxqh-vv77: Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution

Published
Record updated
View JSON
Affected
  • @anthropic-ai/claude-code >= 2.1.63, < 2.1.84
Fixed in
2.1.84
  • released March 25, 2026, 30 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

Claude Code used the git worktree `commondir` file to determine folder trust without validating its contents. A crafted repository whose `commondir` points to a path the victim had already trusted could bypass the trust dialog and run malicious hooks defined in `.claude/settings.json`. Exploitation required the victim to clone the malicious repository, run Claude Code inside it, and the attacker to know or guess a previously trusted path.

Mitigation

Users on standard Claude Code auto-update have already received the fix. Users performing manual updates are advised to update to the latest version.