8.7high
@anthropic-ai/claude-code has Sed Command Validation Bypass that Allows Arbitrary File Writes
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.62% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7mv8-j34q-vp7q
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| anthropics claude-code | < 2.0.31 | CVE List |
| @anthropic-ai/claude-code (npm) | before 2.0.31 | GitHub Advisory Database |
| anthropic claude_code | before 2.0.31 | NVD |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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.
Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to the latest version.
Thank you to Adam Chester - SpecterOps for reporting this issue!
NVD (es)
Claude Code es una herramienta de codificación agéntica. Versiones anteriores a la versión 2.0.31, debido a un error en el análisis de comandos sed, era posible eludir la validación de solo lectura de Claude Code y escribir en archivos arbitrarios en el sistema anfitrión. Este problema ha sido parcheado en la versión 2.0.31.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-64755 changed 2025-11-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7mv8-j34q-vp7q changed 2025-11-21 | CC-BY-4.0 |
| NVD | CVE-2025-64755 changed 2026-10-18 | Public domain |