CVE-2026-55581
Publiée le 2026-08-25 · Dernière modification le 2026-08-25
Les utilisateurs des versions de mcp-shell antérieures à 0.6.0 sont affectés par une faille qui contourne la liste d'autorisation de commandes du logiciel. Un attaquant disposant d'un accès local peut exécuter des commandes shell arbitraires en tant qu'utilisateur `mcpuser` en utilisant l'option `-c` avec `/bin/bash`. Cette exploitation est simple à réaliser et ne nécessite ni authentification ni interaction de l'utilisateur.
DÉTAIL DU VECTEUR CVSS
RÉFÉRENCES
Description officielle du NVD (en anglais)
mcp-shell is an MCP server for running shell commands securely, auditably, and on demand. Prior to 0.6.0, the default Docker security.yaml includes /bin/bash in allowed_executables, while security.go validates only the first token and checkBlockedPatternsAndCommands does not reject the shell command-mode flag -c. A caller of the shell_exec MCP tool can provide the command argument `/bin/bash -c <arbitrary-command>`, which passes validation and reaches executor.go, where parseCommand and exec.CommandContext execute the arbitrary command as mcpuser outside the intended allowlist. This issue is fixed in version 0.6.0.