Skip to content
HighVulnerability

GHSA-3x77-wg38-92r3: mcp-shell has a Secure Mode Allowlist Bypass via Default `/bin/bash` Executable

Published
Record updated
View JSON
Affected
  • github.com/sonirico/mcp-shell < 0.6.0
Fixed in
0.6.0
  • released June 14, 2026, 72 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

mcp-shell's default Docker configuration (security.yaml) includes /bin/bash in allowed_executables, and the command validator in security.go checks only the first token, so it does not block shell flags such as -c. Any MCP tool caller can send command=/bin/bash -c <arbitrary-command> to shell_exec, with no authentication or configuration changes needed, and run binaries outside the allowlist as mcpuser inside the container.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.