CVE-2026-25723
published high CVSS 4.0 · 7.7Claude Code Vulnerable to Command Injection via Piped sed Command Bypasses File Write Restrictions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| anthropics | — | claude-code< 2.0.55 | Affected | Not stated | GitHub_M |
Description
Claude Code is an agentic coding tool. Prior to version 2.0.55, Claude Code failed to properly validate commands using piped sed operations with the echo command, allowing attackers to bypass file write restrictions. This vulnerability enabled writing to sensitive directories like the .claude folder and paths outside the project scope. Exploiting this required the ability to execute commands through Claude Code with the "accept edits" feature enabled. This issue has been patched in version 2.0.55.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| anthropics | claude-code | < 2.0.55 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-20 CWE-20: Improper Input Validation
- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
1Provider assertions
2GitHub_M · cna
Claude Code Vulnerable to Command Injection via Piped sed Command Bypasses File Write Restrictions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5154f19d4f0ab34591b78f81b7c8dab7a46f096a118aca870c7723b572d1402e
- Ingested
- 23 Sep 2026, 09:07:08 UTC
- Source record
- Official CVE record