CVE-2025-66032: Claude Code Command Validation Bypass Allows Arbitrary Code Execution
Claude Code before 1.0.93 can be tricked into running arbitrary commands without approval. Errors in how it parses shell commands containing `$IFS` and short CLI flags let an attacker slip past the read-only command validation. Exploiting it reliably requires putting untrusted content into the model's context window. Upgrade to 1.0.93 or later.
Published Dec 3, 2025 · Updated Dec 4, 2025 · Analysis Nov 1, 2026
What an attacker can do
Claude Code auto-approves a set of commands it judges to be read-only, so the user is not asked for permission. The validator parses the command string to decide this. The advisory says mistakes in handling $IFS and short CLI flags let a command that does more than read pass that check. The command then runs with no prompt, as the user, with full access to their files and credentials.
The attacker does not need access to the machine. They need to get text in front of the model: a poisoned README, a malicious issue or web page the agent fetches, a file in a cloned repo, or a tool result. A prompt injection in that text makes the agent issue the crafted command. The CVSS 4.0 vector (AV:N, PR:N, UI:P) reflects this: a network-delivered payload and a passive user step, such as opening the project or asking the agent to read the content.
The result is arbitrary code execution on a developer workstation or CI runner, which means source code, SSH keys, cloud tokens and environment secrets are all reachable. The advisory gives no further technical detail, such as the exact payload.
Who is affected
All versions of @anthropic-ai/claude-code before 1.0.93. Users on standard auto-update have already received the fix. Manually updated installs, pinned CI images and containers are the ones likely to lag behind.
claude --version
npm ls -g @anthropic-ai/claude-code@anthropic-ai/claude-code
- Ecosystem
- npm
- Affected
- < 1.0.93
- Fixed in
- 1.0.93
- Check
npm ls @anthropic-ai/claude-code
How to fix it
Upgrade to 1.0.93 or later, the patched version listed in the advisory:
npm install -g @anthropic-ai/claude-code@latestThe advisory describes no workarounds. Until you upgrade, avoid pointing the agent at untrusted repositories, pages or documents, and do not run it with broad auto-approved permissions.
How to tell if you were hit
The advisory lists no log indicators. Check the Claude Code version on every machine and in CI images first. Then review shell history and session transcripts for read-only-looking commands that contain ${IFS} or $IFS in place of spaces, or that put unusual short flags on otherwise harmless commands, and for processes spawned by the claude process that you did not expect.
Beam records the shell commands that coding agents run, and its rules can flag risky ones. Searching Beam's captured Claude Code commands for $IFS is a quick way to find suspicious runs.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Due to errors in parsing shell commands related to $IFS and short CLI flags, it was possible to bypass the Claude Code read-only validation and trigger arbitrary code execution. Reliably exploiting this requires the ability to add untrusted content into a Claude Code context window.
Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.
Thank you to [RyotaK](hxxps://ryotak.net) from [GMO Flatt Security Inc.](hxxps://flatt.tech/en/) for reporting this issue!
Credited to Ry0taK.
Questions
- Is Claude Code 1.0.93 or newer affected by CVE-2025-66032?
No. 1.0.93 is the patched version. The advisory says all versions before it are affected, and that auto-update users already have the fix.
- Does exploiting this need user interaction?
Not in the sense of approving a command. The advisory says an attacker must be able to add untrusted content to the context window, for example through a file or page the agent reads. The CVSS vector marks user interaction as passive.
- Is there a workaround?
The advisory gives none. The only remediation is to update Claude Code.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Claude Code vulnerabilities
All Claude Code entriesCVE-2026-88968
Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
high7.7Nov 9, 2026CVE-2026-86063
Claude Code: Plugin Hash Pin Bypass Allows Bypass of Hash Pinning
high7.5Oct 15, 2026CVE-2026-55607
Claude Code: Sandbox Escape via Git Worktree Path Confusion Allows Unsandboxed Code Execution
high7.7Jul 24, 2026CVE-2026-46406
@anthropic-ai/claude-code has an Insecure Temporary File in /copy Command that Enables Response Disclosure and Symlink-Based File Write
medium4.4Jun 25, 2026CVE-2026-54316
Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch
medium9.1Jun 17, 2026CVE-2026-40068
Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution
high7.7Apr 24, 2026
