CVE-2025-64755
JSON

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 packageVersionsReported by
anthropics claude-code< 2.0.31CVE List
@anthropic-ai/claude-code (npm)before 2.0.31GitHub Advisory Database
anthropic claude_codebefore 2.0.31NVD

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78

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

SourceRecordLicence
CVE ListCVE-2025-64755 changed 2025-11-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-7mv8-j34q-vp7q changed 2025-11-21CC-BY-4.0
NVDCVE-2025-64755 changed 2026-10-18Public domain