CVE-2025-64755 @anthropic-ai/claude-code has Sed Command Validation Bypass that Allows Arbitrary File Writes
HighCVSS 8.7
EPSS 0.62%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
Description
Claude Code is an agentic coding tool. Prior to version 2.0.31, due to an error in sed command parsing, it was possible to bypass the Claude Code read-only validation and write to arbitrary files on the host system. This issue has been patched in version 2.0.31.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Anthropic claude code | < 2.0.31 | 2.0.31 | Fixed |
| anthropic-ai @anthropic-ai/claude-code(npm) | < 2.0.31 | 2.0.31 | Fixed |
| anthropics claude-code | = < 2.0.31 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| anthropic-ai @anthropic-ai/claude-code(npm) | < 2.0.31 | 2.0.31 |
| anthropics claude-code | = < 2.0.31 | No fix listed |
| Anthropic claude code | < 2.0.31 | 2.0.31 |
References
- https://github.com/anthropics/claude-code/security/advisories/GHSA-7mv8-j34q-vp7q vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product