CVE-2026-6942

radare2-mcp <=1.6.0 OS Command Injection via Shell Metacharacter Bypass

Published Apr 23, 2026 CVSS 4.0 · 9.3 Critical EPSS 2.0% KEV · Not listed
Description
radare2-mcp version 1.6.0 and earlier contains an os command injection vulnerability that allows remote attackers to execute arbitrary commands by bypassing the command filter through shell metacharacters in user-controlled input passed to r2_cmd_str(). Attackers can inject shell metacharacters through the jsonrpc interface parameters to achieve remote code execution on the host running radare2-mcp without requiring authentication.

Analysis

AI-generated

Technical 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‑mcp, 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 2%, which suggests a low to moderate 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, achieving remote code execution without needing authentication.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade radare2-mcp to a version newer than 1.6.0, which removes the insecure command‑filter bypass.
  • If an upgrade is not immediately possible, limit exposure of the JSON‑RPC interface by firewall rules or by binding it to localhost only, ensuring that only trusted hosts can connect.
  • Disable or restrict the use of the r2_cmd_str() function in user‑supplied scripts or configuration files and audit the application for unintended command execution.

Generated by OpenCVE AI on October 25, 2026 at 20:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Radare radare2 Mcp Server
CPEs cpe:2.3:a:radare:radare2_mcp_server:*:*:*:*:*:*:*:*
Vendors & Products Radare radare2 Mcp Server
Type Values Removed Values Added
Weaknesses CWE-78
Type Values Removed Values Added
First Time appeared Radare
Radare radare2
Vendors & Products Radare
Radare radare2
Type Values Removed Values Added
Weaknesses CWE-78
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description radare2-mcp version 1.6.0 and earlier contains an os command injection vulnerability that allows remote attackers to execute arbitrary commands by bypassing the command filter through shell metacharacters in user-controlled input passed to r2_cmd_str(). Attackers can inject shell metacharacters through the jsonrpc interface parameters to achieve remote code execution on the host running radare2-mcp without requiring authentication.
Title radare2-mcp <=1.6.0 OS Command Injection via Shell Metacharacter Bypass
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:16 PM
Reserved
Apr 23, 2026, 8:52 PM
Status
Analyzed
Published
Apr 23, 2026, 9:16 PM
Modified
Oct 29, 2026, 9:17 PM