NetSight
critical9.8

CVE-2025-64755

@anthropic-ai/claude-code has Sed Command Validation Bypass that Allows Arbitrary File Writes

Impact

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 packages

EcosystemPackageAffectedFixed in
npm@anthropic-ai/claude-code< 2.0.312.0.31

Affected products

VendorProductAffected versions
AnthropicClaude Code
before 2.0.31

Weakness classification

References