Claude Code Vulnerable to Arbitrary Code Execution Due to Insufficient Startup Warning
GHSA-ph6w-f82w-28w6 · published 2025-09-03
- Severity
- High
- CVSS score
- 8.7
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 1.0.87
When Claude Code was started in a new directory, it displayed a warning asking, "Do you trust the files in this folder?". This warning did not properly document that selecting "Yes, proceed" would allow Claude Code to execute files in the folder without additional confirmation. This may not have been clear to a user so we have updated the warning to clarify this functionality.
Upgrade @anthropic-ai/claude-code to 1.0.87 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @anthropic-ai/claude-code | npm | < 1.0.87 | 1.0.87 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- HighClaude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace@anthropic-ai/claude-code
- HighClaude Code: Plugin Hash Pin Bypass Allows Bypass of Hash Pinning@anthropic-ai/claude-code
- HighClaude Code: Sandbox Escape via Git Worktree Path Confusion Allows Unsandboxed Code Execution@anthropic-ai/claude-code
- HighClaude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution@anthropic-ai/claude-code
- HighClaude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace@anthropic-ai/claude-code
- HighClaude Code has a Workspace Trust Dialog Bypass via Repo-Controlled Settings File@anthropic-ai/claude-code
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.