CVE-2025-64755CWE-78command-injection

CVE-2025-64755

Critical · published November 21, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
47.6
In the wild
Unconfirmed
What it is

⚡ A sneaky flaw in Claude Code could let anyone write to any file! Before version 2.0.31, the sed command parsing mishap opened the door to unauthorized access. 🔥 Imagine a restaurant where a server mistakes the table numbers on the order tickets and delivers the chef's secret recipes to the wrong table. That’s how this vulnerability works, as it allows unauthorized changes to the system files without proper validation. An attacker could exploit this vulnerability to alter critical system files, leading to potential data breaches, system instability, or even full system compromise. This could result in an absolute nightmare for system administrators trying to maintain security and integrity.

Put simply

Imagine a restaurant where a server mistakes the table numbers on the order tickets and delivers the chef's secret recipes to the wrong table. That’s how this vulnerability works, as it allows unauthorized changes to the system files without proper validation. This vulnerability stems from an error in Claude Code's sed command parsing, allowing attackers to bypass read-only validation and write to arbitrary files on the host system, which could lead to unauthorized modifications.

What to do

An attacker could exploit this vulnerability to alter critical system files, leading to potential data breaches, system instability, or even full system compromise. This could result in an absolute nightmare for system administrators trying to maintain security and integrity. To mitigate this issue, update Claude Code to version 2.0.31 or later immediately. Additionally, review file permissions and implement strict validation on command inputs to enhance security. Regular audits of system files can also help catch any unauthorized changes early on. You've got this! With these steps, you’ll secure your system and maintain superhero-level security. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00593 · 47.6th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-11-21T07:15Z
Affected products (1)
ProductVersionsFixed in
anthropic/claude_code< 2.0.312.0.31
References (1)
EPSS history
Timeline
  • 21 NOV 01:13Z
    @anthropic-ai/claude-code has Sed Command Validation Bypass that Allows Arbitrary File Writes
    cvelistv5