CVE-2026-6942: CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection') in radareorg radare2-mcp
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.
AI Analysis
Technical Summary
The vulnerability in radare2-mcp (<=1.6.0) arises from improper neutralization of special elements used in OS commands (CWE-78). Specifically, the function r2_cmd_str() fails to adequately sanitize user input passed through the jsonrpc interface, allowing attackers to inject shell metacharacters. This injection bypasses command filters and enables remote code execution without authentication. The CVSS 4.0 vector indicates the attack is network-based, requires no privileges or user interaction, and results in high confidentiality, integrity, and availability impact.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary OS commands on the host running radare2-mcp without authentication. This can lead to full system compromise, data loss, or service disruption. The vulnerability affects confidentiality, integrity, and availability at a high level.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to the jsonrpc interface to trusted users only and consider disabling or isolating the vulnerable service to prevent exploitation.
CVE-2026-6942: CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection') in radareorg radare2-mcp
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.
CVSS v4.0
Score 9.3critical
Affected software
pkg:github/radareorg/radare2-mcpRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in radare2-mcp (<=1.6.0) arises from improper neutralization of special elements used in OS commands (CWE-78). Specifically, the function r2_cmd_str() fails to adequately sanitize user input passed through the jsonrpc interface, allowing attackers to inject shell metacharacters. This injection bypasses command filters and enables remote code execution without authentication. The CVSS 4.0 vector indicates the attack is network-based, requires no privileges or user interaction, and results in high confidentiality, integrity, and availability impact.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary OS commands on the host running radare2-mcp without authentication. This can lead to full system compromise, data loss, or service disruption. The vulnerability affects confidentiality, integrity, and availability at a high level.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to the jsonrpc interface to trusted users only and consider disabling or isolating the vulnerable service to prevent exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-23T20:52:12.685Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ea8d5f87115cfb685fc9bd
Added to database: 04/23/2026, 21:21:35 UTC
Last enriched: 07/15/2026, 09:57:59 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 151
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.