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
- released June 4, 2026, 25 days before disclosure
- 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
- MediumCVE-2026-138033: mcp-video-analyzer server-side request forgery via video URL inputsSimilar attack · NVD/CVE Database
- HighCVE-2026-138028: Bagel (bagel-mcp) before 2.5.5 contains an argument injection vulnerability in RsyncFilesToLocalDirectory that allows…Similar attack · NVD/CVE Database
- Infov2026.11Similar attack · MITRE ATLAS Releases
- MediumSwitzerland Confirms AI-Assisted Cyberattacks Breached Critical Infrastructure OperatorsSimilar attack · The Hacker News
- MediumCVE-2026-137668: ONNX ONNXMLTools cross site scripting in visualize_model via producer_nameSimilar attack · NVD/CVE Database