CVE-2026-55581 json
mcp-shell: Secure Mode Allowlist Bypass via Default `/bin/bash` Executable
published 2026-08-25 2 mo ago modified 2026-09-09 1 mo ago also EUVD-2026-65549 , GHSA-3x77-wg38-92r3 , GO-2026-6290
- cvss
- 8.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/sonirico/mcp-shell 0.6.0
- sonirico mcp-shell 0.6.0
- govulncheck-vulndb SLES for SAP applications 16.0, SLES 16.0 0.0.20260827T195228-160000.1.1
suse advisories SUSE-SU-2026:23625-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260827T195228-160000.1.1
opensuse advisories openSUSE-SU-2026:21761-1
- github.com/sonirico/mcp-shell@f31377f commit
- github.com/sonirico/mcp-shell#16 pull request
- github.com/sonirico/mcp-shell/releases/tag/v0.6.0 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 mo ago
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/sonirico/mcp-shell/security/advisories/GHSA-3x77-wg38-92r3 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/sonirico/mcp-shell | <0.6.0 |
0.6.0 |
Affected products
- sonirico mcp-shell
Classification
References
-
github.com
/sonirico/mcp-shell/pull/16
web, patch
-
github.com
/sonirico/mcp-shell/commit/f31377fce6ec31114e5a4398c0e5270552bce09f
web, patch
-
github.com
/sonirico/mcp-shell/security/advisories/GHSA-3x77-wg38-92r3
exploit, web, advisory
-
github.com
/sonirico/mcp-shell/releases/tag/v0.6.0
web
-
github.com
/sonirico/mcp-shell
package
Sources
- CVE List CVE-2026-55581
- GitHub Advisory GHSA-3x77-wg38-92r3
- NVD CVE-2026-55581
- OSV GO-2026-6290
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.