CVE-2026-55581
published high CVSS 3.1 · 8.4mcp-shell: Secure Mode Allowlist Bypass via Default `/bin/bash` Executable
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sonirico | — | mcp-shell< 0.6.0 | Affected | Not stated | GitHub_M |
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 <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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sonirico | mcp-shell | < 0.6.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-183 CWE-183: Permissive List of Allowed Inputs
- CWE-1188 CWE-1188: Insecure Default Initialization of Resource
References
4Provider assertions
2GitHub_M · cna
mcp-shell: Secure Mode Allowlist Bypass via Default `/bin/bash` Executable
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cbcd88c898ff07797e6d546f848eb7fdb7f508056e966ef27377d5e3ac4e6197
- Ingested
- 23 Sep 2026, 09:21:01 UTC
- Source record
- Official CVE record