CVE-2026-24053: Claude Code - Command Injection
- Cve: CVE-2026-24053
- Name: Claude Code - Command Injection
- Description: Claude Code is an agentic coding tool. Prior to version 2.0.74, due to a Bash command validation flaw in parsing ZSH clobber syntax, it was possible to bypass directory restrictions and write files outside the current working directory without user permission prompts. Exploiting this required the user to use ZSH and the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.74.
- Impact: Attackers can write files outside the working directory, potentially leading to arbitrary file modification and system compromise.
- Remediation: Update to version 2.0.74 or later.
- Vulnerability type: command_injection
- Vulnerability impact: file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00519
- Epss percentile: 0.44688
- Assignee: [email protected]
- Published at: 2026-02-03T21:16:13Z
- Age in days: 294
- Modified at: 2026-06-17T10:22:31Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-24053
- 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: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/anthropics/claude-code/security/advisories/GHSA-q728-gf8j-w49r | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| anthropic:claude_code | < 2.0.74 | 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
- 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, hackerone reports, exposed hosts