Impact
The vulnerability allows an attacker to inject arbitrary shell metacharacters into JSON-RPC parameters, which the radare2-mcp engine passes to the r2_cmd_str() function without proper sanitization. This results in execution of any shell command the attacker specifies, giving remote code execution on the host machine. The attack does not require prior authentication and is performed entirely through the network interface exposed by radare2-mcp.
Affected Systems
The affected product is radareorg radare2, version 1.6.0 and earlier. Any deployment of radare2-mcp using these versions is susceptible to the described injection flaw.
Risk and Exploitability
The vulnerability has a CVSS score of 9.3, indicating high severity, but the EPSS score is below 1%, which suggests a low current likelihood of exploitation. It is not listed in CISA’s KEV catalog. The attacker can launch this attack remotely by sending crafted JSON-RPC requests to the vulnerable service, and achieving remote code execution without needing authentication.
OpenCVE Enrichment