{"id":"CVE-2026-55581","published":"2026-08-25T15:40:10Z","modified":"2026-08-25T19:01:56Z","title":"mcp-shell: Secure Mode Allowlist Bypass via Default `/bin/bash` Executable","vendor":"sonirico","product":"mcp-shell","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00454,"percentile":0.40304,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-183","name":"Permissive List of Allowed Inputs"},{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"references":[{"url":"https://github.com/sonirico/mcp-shell/security/advisories/GHSA-3x77-wg38-92r3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sonirico/mcp-shell/pull/16","tags":["x_refsource_MISC"]},{"url":"https://github.com/sonirico/mcp-shell/commit/f31377fce6ec31114e5a4398c0e5270552bce09f","tags":["x_refsource_MISC"]},{"url":"https://github.com/sonirico/mcp-shell/releases/tag/v0.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.06},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"sonirico","affectedVersions":[{"vendor":"sonirico","product":"mcp-shell","versions":["< 0.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-25T19:01:36.178820Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/sonirico/mcp-shell","vulnerableRanges":["<0.6.0"],"patched":["0.6.0"],"from":["GHSA-3x77-wg38-92r3","GO-2026-6290"],"provenance":"source"}],"summary":{"text":"mcp-shell (sonirico), prior to 0.6.0, has an allowlist bypass in its secure mode: the default Docker security.yaml permits /bin/bash, and validation checks only the first token and does not block the shell's -c flag, so the shell_exec tool's execution path (executor.go) runs arbitrary commands as mcpuser outside the intended allowlist. An attacker with local access who can call the shell_exec MCP tool, with no authentication or user interaction required, can supply a command such as \"/bin/bash -c <arbitrary-command>\" to execute any command the mcpuser account can run.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:32Z"},"euvd":{"id":"EUVD-2026-65549","exploited":false,"provenance":"source"}}