Skip to content
Metnew·Indexed by this site · Originally published· Event →SelectedAttention45

Researcher discloses Claude Code working tree sandbox escape issue, fixed in 2.1.163

Claude Code worktree sandbox escape write-up

AI summary

Researcher Metnew describes a sandbox escape issue in Claude Code's working tree handling, and says it was verified on version 2.1.139 on macOS. The risk requires the user to first clone a malicious repository and have Claude Code process its contents, after which it may use agent tools to cross expected permission boundaries. The official fix is in 2.1.163; the Bot only read the first half of the research report, did not run the PoC, or verify claims about other products. This is a research vulnerability disclosure, not a confirmed in-the-wild incident.

Why it was selected

Full disclosure of the exploitation chain from repository prompt injection to bypassing the macOS seatbelt sandbox, along with fixed versions, allowing you to check the trust boundaries of your own coding agent's worktree and git configuration.

Read originalgithub.com