Skip to content
HighVulnerabilityLLM-specific

CVE-2026-55607: Claude Code worktree handling allows sandbox escape via git directory confusion

Identifier
CVE-2026-55607
Published
Record updated
View JSON
Affected
  • @anthropic-ai/claude-code >= 2.1.38, < 2.1.163
Fixed in
2.1.163
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

Claude Code versions 2.1.38 through 2.1.163 allowed creation of worktrees named ".git" and navigation to worktrees outside the sandbox context, enabling git directory confusion attacks. Through symlink manipulation and git fsmonitor execution during worktree operations, an attacker could overwrite files such as .zshenv in the user's home directory, leading to code execution outside seatbelt sandbox restrictions. Reliable exploitation required the user to clone a malicious repository containing prompt injection content and run Claude Code against it.

Mitigation

Fixed in 2.1.163.