CVE-2026-24887: Claude Code - Command Injection
- Cve: CVE-2026-24887
- Name: Claude Code - Command Injection
- Description: Claude Code is an agentic coding tool. Prior to version 2.0.72, due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.72.
- Impact: Attackers can execute arbitrary commands, potentially leading to full system compromise.
- Remediation: Update to version 2.0.72 or later.
- Vulnerability type: command_injection
- Vulnerability impact: command_injection, remote_code_execution
- Requirements: Ability to add untrusted content into Claude Code context window
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00642
- Epss percentile: 0.51548
- Assignee: [email protected]
- Published at: 2026-02-03T21:16:13Z
- Age in days: 294
- Modified at: 2026-06-17T10:23:45Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-24887
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Hackerone
- Reports: 3
- Rank: 3240
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/anthropics/claude-code/security/advisories/GHSA-qgqw-h4xq-7w8w | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| anthropic:claude_code | < 2.0.72 | no | nvd | /v1/products/anthropic/claude_code |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| anthropics/claude-code | package, security_advisory | yes | /v1/repositories/anthropics/claude-code |
Index
- Repositories: 2
- Repositories high signal: 2
- Packages: 1
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 3
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts