# CVE-2025-58764: Anthropic Claude Code rg command injection approval bypass

Source: https://junglewise.ai/threats/cve-2025-58764-anthropic-claude-code-rg-command-injection-approval-bypass  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-09-10. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-58764 · Severity: medium · CVSS 4 · Published 2025-09-10

Claude Code is an AI code execution tool that requires user approval before running commands. A flaw in command parsing allowed attackers to bypass this safety confirmation prompt and execute untrusted commands. An attacker would need to inject malicious content into the Claude Code context window, potentially leading to unauthorized code execution on the user's system.

Technologies: [Anthropic Claude Code](https://junglewise.ai/threats/technologies/claude-code), [@anthropic-ai/claude-code (npm)](https://junglewise.ai/threats/technologies/anthropic-ai-claude-code). Vendors: [Anthropic](https://junglewise.ai/threats/vendors/anthropic), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2025-58764 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-58764 being exploited in the wild.

**How severe is CVE-2025-58764?** Medium severity, with a CVSS score of 4, published 10 September 2025.

**Which products and versions are affected?** Anthropic Claude Code before 1.0.105; @anthropic-ai/claude-code (npm) SEMVER:introduced=0,fixed=1.0.105.

**Is there a fix for CVE-2025-58764?** Yes. @anthropic-ai/claude-code (npm): upgrade to 1.0.105 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-58764 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2025-58764?** Check whether you run Anthropic Claude Code or @anthropic-ai/claude-code (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @anthropic-ai/claude-code (npm): upgrade to 1.0.105 or later

  ```sh
  npm install @anthropic-ai/claude-code@1.0.105
  ```


## Technical details

A command injection vulnerability in the rg (ripgrep) command parsing logic allowed attackers to bypass the user approval prompt. The vulnerability (CWE-94: Improper Control of Generation of Code) stems from an error in how commands are parsed, enabling untrusted input to trigger command execution without confirmation. The attack requires the ability to introduce malicious content into the Claude Code context window and user interaction (the attacker leverages passive user interaction). The vulnerability impacts confidentiality, integrity, and availability of the vulnerable system. Patches are available in version 1.0.105 and later; auto-update users received the fix automatically.

## Affected products

- Anthropic Claude Code before 1.0.105

## Identifiers

- CVE-2025-58764
- GHSA-qxfv-fcpc-w36x

## Timeline

- 2025-09-10: disclosed
- 2025-09-10: patched: version 1.0.105

## References

- [https://github.com/anthropics/claude-code/security/advisories/GHSA-qxfv-fcpc-w36x](https://github.com/anthropics/claude-code/security/advisories/GHSA-qxfv-fcpc-w36x)

## Related threats

- [Anthropic Claude Code time-of-check-to-time-of-use in Edit tool](https://junglewise.ai/threats/cve-2026-88968-claude-code-is-an-agentic-coding-tool-prior-to-2-1-251-the-edit)
- [Anthropic Claude Code plugin hash pin bypass in git checkout](https://junglewise.ai/threats/cve-2026-86063-claude-code-plugin-hash-pin-bypass-allows-bypass-of-hash-pinning)
- [Anthropic Claude Code managed settings bypass with stored API key](https://junglewise.ai/threats/cve-2026-103012-claude-code-selected-an-api-key-stored-by-claude-code-for)
- [Anthropic Claude Code sandbox escape via git worktree path confusion](https://junglewise.ai/threats/cve-2026-55607-anthropic-claude-code-sandbox-escape-via-git-worktree-path)
- [Anthropic Claude Code insecure temporary file in copy command](https://junglewise.ai/threats/cve-2026-46406-anthropic-claude-code-insecure-temporary-file-in-copy-command)
