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

High 7.7 Published Updated

Attackers can escape the sandbox and execute arbitrary code by exploiting git worktree path confusion and symlink manipulation in Claude Code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-55607?

CVE-2026-55607 is a high-severity path traversal vulnerability in anthropics claude-code, published on 29 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-78, CWE-59, CWE-22

Which versions are affected by CVE-2026-55607?

2 open source packages ship an affected version, including @anthropic-ai/claude-code. It affects 1 product.

PackageAffectedFixed in
@anthropic-ai/claude-code npmFrom 2.1.382.1.163
@anthropic-ai/claude-code npmFrom 2.1.382.1.163

Products include Anthropic Claude Code.

How do I fix CVE-2026-55607?

Upgrade @anthropic-ai/claude-code to 2.1.163 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-55607 being exploited?

There is no known exploitation of CVE-2026-55607 in the wild and no public exploit code.

Sources

Also known as GHSA-7835-87q9-rgvv, MINI-67r7-78qr-hmcq, MINI-8cv7-4r7h-wrc4.

Is CVE-2026-55607 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free