← Back to overview

CVE-2026-55581 affects mcp-shell, an MCP server designed for secure and auditable shell command execution. Prior to version 0.6.0, the default Docker security configuration included /bin/bash in the allowed_executables list. The security validation logic in security.go only checked the first token of a command, and the checkBlockedPatternsAndCommands function failed to reject the -c flag used in shell command mode. An attacker could exploit this by supplying '/bin/bash -c <arbitrary-command>' as the command argument to the shell_exec MCP tool, bypassing the intended allowlist. The malicious command would pass validation and be executed by executor.go via exec.CommandContext as the mcpuser. This effectively allowed arbitrary command execution outside the defined security policy. The vulnerability has been patched in version 0.6.0.

Affected products

  • mcp-shell

Related CVE's

  • CVE-2026-55581

Categories

  • Emerging Technologies
  • Security Tools