mcp-shell has a Secure Mode Allowlist Bypass via Git Shell Alias
CVE-2026-55582 · GHSA-74hp-mggr-hv58 · published 2026-08-25
- Severity
- High
- CVSS score
- 8.4
- Chance of exploitation (EPSS)
- 0.27%
- 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). Any entity that can issue an MCP tools/call request to a mcp-shell instance running with the default Docker configuration can execute arbitrary OS commands as the mcpuser process account (UID 1000) inside the container. The default Docker deployment sets tool requires no additional authentication beyond MCP connectivity. "Secure mode" is explicitly marketed as the mechanism preventing command injection; this bypass nullifies that protection entirely. Impacted parties: Users and operators who deploy the default mcp-shell Docker image and expose it to MCP clients (directly via stdio, or via an MCP bridge/proxy over the network).
Upgrade github.com/sonirico/mcp-shell to 0.6.0 or later.
| 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 Default `/bin/bash` Executablegithub.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.