PT-2026-52680
CVE-2026-55607
·
Published
2026-06-26
·
Updated
2026-10-15
Description by
CVSS 3.1
8.8
HighMetricsAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions
Claude Code versions 2.1.38 through 2.1.162
Description
Worktree handling allows the 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 can overwrite files in the user's home directory, such as
.zshenv, leading to code execution outside of seatbelt sandbox restrictions. This can be achieved through prompt injection if a user clones and runs the tool against a malicious repository. The issue persists even when the tool is used with read-only permissions.Recommendations
Update to version 2.1.163.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾