HighVulnerabilityLLM-specific
CVE-2026-55607: Claude Code worktree handling allows sandbox escape via git directory confusion
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-55607
- Published
- Record updated
- 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.
Coverage
News, research and other items that mention CVE-2026-55607.
- Malicious .git Configs Can Make Claude, Codex, Cursor, and Other AI Agents Run Attacker CodeThe Hacker News · 2026-09-02
Topics
Related items
- InfoResearchers Used a Public OpenAI Model to Build a $250,000 Chrome Full-Chain Exploit in Six DaysSimilar attack · The Hacker News
- MediumAn AI Agent Found a Critical OTP Bypass in Production. The Attack Was the Easy Part.Similar attack · The Hacker News
- LowFBI arrests Saudi OpenAI employee who allegedly planted recording device in conference roomSimilar attack · CNBC Technology
- MediumVisual Studio Copilot and SSMS Remote Code Execution (CVE-2026-103572)Similar attack · Embrace The Red
- LowAnthropic warns self-replicating AI could spread to your smart devicesSimilar attack · BleepingComputer