CVE-2025-58764: Claude Code rg vulnerability does not protect against approval prompt bypass
Claude Code before 1.0.105 had a command parsing error around its rg (ripgrep) handling that let an attacker bypass the confirmation prompt and run an untrusted command. Exploiting it needs untrusted content in the model context window. Auto-update delivered the fix. Manual installs should move to 1.0.105 or later.
Published Sep 10, 2025 · Analysis Nov 1, 2026
What an attacker can do
Claude Code asks the user to confirm shell commands unless they match a rule that allows them. The title of this advisory names rg, and the description says a parsing error let a command skip that confirmation. The advisory does not publish the exact input that triggers it.
The attacker cannot send anything to the machine directly. They need their text to reach the context window, for example through a cloned repository file, a README, a web page the agent reads, or a tool result. That text steers the agent into issuing a command shaped to slip past the parser. The command then runs with the user rights, without the prompt the user would normally see.
That gives code execution as the developer: access to source, SSH keys, cloud credentials and environment variables on the machine. The CVSS 4.0 vector rates it High on confidentiality, integrity and availability, with user interaction listed as passive. Anthropic credits the NVIDIA AI Red Team for the report.
Who is affected
Affected: @anthropic-ai/claude-code below 1.0.105. Users on standard auto-update received the fix automatically; manual installs and pinned versions are the ones to check:
claude --versionFor a project-local or global npm install, use npm ls @anthropic-ai/claude-code or npm ls -g @anthropic-ai/claude-code. Check CI images and dev containers that pin the package.
@anthropic-ai/claude-code
- Ecosystem
- npm
- Affected
- < 1.0.105
- Fixed in
- 1.0.105
- Check
npm ls @anthropic-ai/claude-code
How to fix it
Upgrade to @anthropic-ai/claude-code 1.0.105 or later.
npm install -g @anthropic-ai/claude-code@latestThe advisory says auto-update users already have the fix. Pinned CI images and containers need a rebuild. The advisory names no workaround. Until updated, avoid running the agent on untrusted repositories or web content, and review every command prompt with care.
How to tell if you were hit
Review shell history and the agent session transcripts for commands that ran without a prompt and involve rg or unusual arguments, network tools or file writes. Look for unexpected child processes of the claude process and outbound connections from the developer machine. Beam records agent shell commands, and its rules flag risky ones, so you can review what ran during a session.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of an untrusted command. Reliably exploiting this requires the ability to add untrusted content into a Claude Code context window.
Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to the latest version.
Thank you to the NVIDIA AI Red Team for reporting this issue!
Questions
- Do I need to do anything if I use auto-update?
The advisory says users on standard auto-update received the fix automatically. Run claude --version to confirm it is 1.0.105 or later.
- Can an attacker exploit this remotely without any victim action?
No. Reliable exploitation needs the ability to place untrusted content in the Claude Code context window, so the user must have the agent process attacker-controlled material.
- Which version fixes CVE-2025-58764?
@anthropic-ai/claude-code 1.0.105. Anything below it is listed as affected.
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
