# CVE-2026-55607: Claude Code: Sandbox Escape via Git Worktree Path Confusion Allows Unsandboxed Code Execution

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-06-29T14:04:00.693Z
- Modified: 2026-10-25T21:10:00.770Z
- Also known as: GHSA-7835-87q9-rgvv
- Weaknesses: CWE-22, CWE-59, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Claude Code is an agentic coding tool.  From 2.1.38 until 2.1.163, Claude Code's worktree handling allowed creation of worktrees named ".git" and navigation to worktrees outside the sandbox context, enabling git directory confusion attacks. By exploiting symlink manipulation and git fsmonitor execution during worktree operations, an attacker could overwrite files in the user's home directory (such as .zshenv), leading to code execution outside of seatbelt sandbox restrictions. Reliably exploiting this required the user to clone a malicious repository containing prompt injection content and run Claude Code against it. This vulnerability is fixed in 2.1.163.

(As written by CVE List.)

## Affected

- anthropics claude-code: >= 2.1.38, < 2.1.163
- @anthropic-ai/claude-code (npm): from 2.1.38 before 2.1.163
- anthropic claude_code: from 2.1.38 before 2.1.163

## Every score

- GitHub_M: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/anthropics/claude-code/security/advisories/GHSA-7835-87q9-rgvv> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-55607> (advisory)
- <https://github.com/anthropics/claude-code> (package)
- <https://github.com/anthropics/claude-code/releases/tag/v2.1.163> (web)

## Sources

- CVE List: [CVE-2026-55607](https://www.cve.org/CVERecord?id=CVE-2026-55607), CVE Terms of Use, modified 2026-06-29
- GitHub Advisory Database: [GHSA-7835-87q9-rgvv](https://github.com/advisories/GHSA-7835-87q9-rgvv), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-55607](https://nvd.nist.gov/vuln/detail/CVE-2026-55607), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-55607 · Whole record: https://cve.day/CVE-2026-55607.json · Rebuilt by cve.day 2026-11-25T22:59:26.616Z
