# CVE-2026-55581: mcp-shell: Secure Mode Allowlist Bypass via Default `/bin/bash` Executable

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T15:40:10.992Z
- Modified: 2026-09-09T21:07:31.353Z
- Also known as: GHSA-3x77-wg38-92r3, GO-2026-6290
- Weaknesses: CWE-78, CWE-183, CWE-1188
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- sonirico mcp-shell: < 0.6.0
- github.com/sonirico/mcp-shell (Go): before 0.6.0

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/sonirico/mcp-shell/security/advisories/GHSA-3x77-wg38-92r3> (exploit, advisory, web)
- <https://github.com/sonirico/mcp-shell/pull/16> (fix, web)
- <https://github.com/sonirico/mcp-shell/commit/f31377fce6ec31114e5a4398c0e5270552bce09f> (fix, web)
- <https://github.com/sonirico/mcp-shell/releases/tag/v0.6.0> (web)
- <https://github.com/sonirico/mcp-shell> (package)

## Sources

- CVE List: [CVE-2026-55581](https://www.cve.org/CVERecord?id=CVE-2026-55581), CVE Terms of Use, modified 2026-08-25
- GitHub Advisory Database: [GHSA-3x77-wg38-92r3](https://github.com/advisories/GHSA-3x77-wg38-92r3), CC-BY-4.0, modified 2026-09-09
- Go Vulnerability Database: [GO-2026-6290](https://pkg.go.dev/vuln/GO-2026-6290), CC-BY-4.0, modified 2026-08-26
- NVD: [CVE-2026-55581](https://nvd.nist.gov/vuln/detail/CVE-2026-55581), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-55581 · Whole record: https://cve.day/CVE-2026-55581.json · Rebuilt by cve.day 2026-11-25T22:59:35.169Z
