What’s Vulnerable › Vulnerabilities

CVE-2026-6942: radare2-mcp <=1.6.0 OS Command Injection via Shell Metacharacter Bypass

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.

Affected products

How to fix

Upgrade to a fixed version: radareorg radare2-mcp 1.7.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-6942 or the next vulnerability affects your stack