| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-55581 |
| Date (index) | 2026-08-25 |
| Affected product (index) | mcp-shell is an MCP server for running shell commands securely, auditably, and on demand |
| GHSA ID | GHSA-3X77-WG38-92R3 |
| OWASP MCP Top 10 (2025) | MCP01 — Token Mismanagement & Secret Exposure |
| Published / disclosed | 2026-08-25 |
| Ecosystem | Application / upstream project |
| Component | mcp-shell is an MCP server for running shell commands securely, auditably, and on demand |
| EPSS score | 0.004540000 (FIRST EPSS, 2026-09-26) |
| CVSS score | HIGH — 8.4 CVSS v3.1 |
| CWE | CWE-78, CWE-183, CWE-1188 |
| Affected versions | v0.5.0, v0.4.0, v0.3.1, v0.3.0, v0.2.2, v0.2.0, v0.1.0 |
| Fixed versions | 0.6.0 |
| Fix status | Patched |
| Exploit status | Public CVE record; do not mirror weaponized payloads |
| Notes | Added as a separate CVE note during the 2026-08-25 missing-CVE follow-up. Re-check NVD before using this entry for compliance reporting. |
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.
Exposure depends on how the affected MCP server, client, gateway, plugin, extension, or adjacent AI workflow is deployed. Prioritize network-reachable MCP transports, desktop apps with MCP extensions enabled, CI or agent environments, and systems with access to browsers, repositories, credentials, cloud resources, databases, or local files.
Primary mapped weakness: MCP01 — Token Mismanagement & Secret Exposure. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.
MCP components bridge model output to privileged tools. Vulnerabilities in authorization, path validation, OAuth handling, command execution, SSRF validation, prompt/tool trust, or tool access can turn prompt/tool input into host compromise, credential disclosure, unauthorized browser/cloud/database access, or persistent malicious tool execution.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.
Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.
If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.
Track NVD references for CVE-2026-55581 and apply the upstream patched release or commit recommended by the vendor/CNA.