{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-55581","id":"CVE-2026-55581","title":"mcp-shell: Secure Mode Allowlist Bypass via Default `/bin/bash` Executable","description":"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 <a","descriptionLong":"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.","published":"2026-08-25T15:40:10.992Z","updated":"2026-10-28T02:30:31.015804497Z","reserved":"2026-06-16T23:18:03.169Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["sonirico mcp-shell"],"affectedProducts":[{"vendor":"sonirico","product":"mcp-shell","defaultStatus":null,"versions":[{"version":"< 0.6.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/sonirico/mcp-shell","purl":"pkg:golang/github.com/sonirico/mcp-shell","ranges":["<0.6.0"],"fixed":["0.6.0"],"advisory":"GHSA-3x77-wg38-92r3"}],"cwes":["CWE-78","CWE-183","CWE-1188"],"aliases":["GHSA-3x77-wg38-92r3","GO-2026-6290"],"references":[{"url":"https://github.com/sonirico/mcp-shell/security/advisories/GHSA-3x77-wg38-92r3","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/sonirico/mcp-shell/pull/16","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/sonirico/mcp-shell/commit/f31377fce6ec31114e5a4398c0e5270552bce09f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/sonirico/mcp-shell/releases/tag/v0.6.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55581.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55581","tags":["advisory"]},{"url":"https://github.com/sonirico/mcp-shell","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00454,"epssPercentile":0.40167,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-55581","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55581","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-55581","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3x77-wg38-92r3","ok":true,"note":"GHSA-3x77-wg38-92r3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-55581","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}