CVE-2026-55581
mcp-shell: Secure Mode Allowlist Bypass via Default `/bin/bash` Executable
Check your servers for CVE-2026-55581
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-55581 affects mcp-shell, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.47%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 42.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 25 Aug 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
- CWE-183 Permissive List of Allowed Inputs
- CWE-1188 Initialization of a Resource with an Insecure Default
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of mcp-shell and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i mcp-shell
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-55581 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-55581RHEL, Rocky, Alma, Fedora
rpm -q mcp-shell
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-55581Alpine
apk list --installed | grep -i mcp-shellWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-55581
trivy image --scanners vuln IMAGE | grep CVE-2026-55581
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Exploits and proof of concept
- https://github.com/sonirico/mcp-shell/security/advisories/GHSA-3x77-wg38-92r3 github.com · exploit
Other references
- https://github.com/sonirico/mcp-shell/pull/16 github.com
- https://github.com/sonirico/mcp-shell/commit/f31377fce6ec31114e5a4398c0e5270552bce09f github.com
- https://github.com/sonirico/mcp-shell/releases/tag/v0.6.0 github.com
Source: the record CVE-2026-55581 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse