Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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