← Vulnerability feed

Vulnerability record · CVE-2026-55607 · published 29 June 2026

CVE-2026-55607: Anthropic claude code path traversal vulnerability

Anthropic · Claude Code

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.

7.7 CVSS 4.0 High EPSS 0.69% · top 49.2% CWE-22 · Path traversalCWE-59 · Link following
7.7CVSS 4.0 base score
0.69%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
1References
30 Jun 2026Last modified by NVD

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.

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-55607 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.7CVE-2025-66032Anthropic claude code command injection vulnerabilityClaude Code is an agentic coding tool. Prior to 1.0.93, Due to errors in parsing shell commands related to $IFS and short CLI flags, it was possible …EPSS 0.69%8.7CVE-2025-64755Anthropic claude code os command injection vulnerabilityClaude Code is an agentic coding tool. Prior to version 2.0.31, due to an error in sed command parsing, it was possible to bypass the Claude Code rea…EPSS 0.55%8.7CVE-2025-59536Anthropic claude code code injection vulnerabilityClaude Code is an agentic coding tool. Versions before 1.0.111 were vulnerable to Code Injection due to a bug in the startup trust dialog implementat…EPSS 27%8.7CVE-2025-59041Anthropic claude code code injection vulnerabilityClaude Code is an agentic coding tool. At startup, Claude Code executed a command templated in with `git config user.email`. Prior to version 1.0.105…EPSS 0.55%8.7CVE-2025-58764Anthropic claude code code injection vulnerabilityClaude Code is an agentic coding tool. Due to an error in command parsing, versions prior to 1.0.105 were vulnerable to a bypass of the Claude Code c…EPSS 0.55%8.7CVE-2025-54795Anthropic claude code os command injection vulnerabilityClaude Code is an agentic coding tool. In versions below 1.0.20, an error in command parsing makes it possible to bypass the Claude Code confirmation…EPSS 1.0%7.7CVE-2026-40068Anthropic claude code improper input validation vulnerabilityIn versions 2.1.63 through 2.1.83 of Claude Code, the folder trust determination logic used the git worktree commondir file without validating its co…EPSS 0.56%7.7CVE-2026-39861Anthropic claude code path traversal vulnerabilityClaude Code is an agentic coding tool. Prior to version 2.1.64, Claude Code's sandbox did not prevent sandboxed processes from creating symlinks poin…EPSS 0.80%

Source: NIST National Vulnerability Database (record CVE-2026-55607), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.