mcp-shell has a Secure Mode Allowlist Bypass via Default `/bin/bash` Executable
CVE-2026-55581 · GHSA-3x77-wg38-92r3 · published 2026-08-25
- Severity
- High
- CVSS score
- 8.4
- Chance of exploitation (EPSS)
- 0.45%
- Fixed in
- 0.6.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
This is an OS Command Injection vulnerability (CWE-78). The shell_exec MCP tool is designed to execute only pre-approved executables; the bypass allows an attacker to run arbitrary commands present in the container image (curl, wget, env, sed, grep, tar, etc. — all installed by the Dockerfile) under the identity of mcpuser (UID 1000).
Upgrade github.com/sonirico/mcp-shell to 0.6.0 or later.
1. Remove shell interpreters from the default security.yaml allowlist: 2. Add argument-level validation in security.go to block shell command-mode flags even when a shell interpreter is allowlisted:
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| github.com/sonirico/mcp-shell | Go | < 0.6.0 | 0.6.0 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- Highmcp-shell has a Secure Mode Allowlist Bypass via Git Shell Aliasgithub.com/sonirico/mcp-shell
- Highmcp-shell — Security Disabled by Default in Bare-Binary Deploy Path + Shell Interpreter in Secure-Mode Allowlistgithub.com/sonirico/mcp-shell
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.