{"id":"CVE-2026-55582","published":"2026-08-25T15:37:43Z","modified":"2026-08-28T22:28:54Z","title":"mcp-shell: Secure Mode Allowlist Bypass via Git Shell Alias","vendor":"sonirico","product":"mcp-shell","tier":"tail","description":{"text":"mcp-shell is an MCP server for running shell commands securely, auditably, and on demand. Prior to 0.6.0, the default security.yaml allows /usr/bin/git, while security.go omits ! from containsShellMetacharacters and containsDangerousShellConstructs and applies no per-executable argument policy. A caller of the shell_exec MCP tool can provide the command argument /usr/bin/git -c alias.pwn=!<arbitrary-command>, causing Git to create a shell alias and execute arbitrary OS commands as the mcp-shell process user. The default Docker image runs as mcpuser with Git installed and secure mode enabled, so the bypass is exploitable in the default deployment without additional authentication beyond MCP connectivity. This issue is fixed in version 0.6.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00267,"percentile":0.11779,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/sonirico/mcp-shell/security/advisories/GHSA-74hp-mggr-hv58","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sonirico/mcp-shell/pull/16","tags":["x_refsource_MISC"]},{"url":"https://github.com/sonirico/mcp-shell/commit/f31377fce6ec31114e5a4398c0e5270552bce09f","tags":["x_refsource_MISC"]},{"url":"https://github.com/sonirico/mcp-shell/releases/tag/v0.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.2,"factors":[{"name":"EPSS percentile","points":2.36},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"sonirico","affectedVersions":[{"vendor":"sonirico","product":"mcp-shell","versions":["< 0.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-28T22:28:14.548495Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/sonirico/mcp-shell","vulnerableRanges":["<0.6.0"],"patched":["0.6.0"],"from":["GHSA-74hp-mggr-hv58","GO-2026-6291"],"provenance":"source"}],"summary":{"text":"The flaw is in mcp-shell by sonirico, an MCP server for running shell commands: its secure mode lets /usr/bin/git through the allowlist, and its metacharacter and argument checks do not catch a leading \"!\" in Git's -c alias option, so the allowlist can be bypassed. An attacker who can call the shell_exec tool, with no further authentication beyond MCP connectivity in the default Docker deployment, can supply a command such as /usr/bin/git -c alias.pwn=!<arbitrary-command> to run arbitrary OS commands as the mcp-shell process user, and no user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:13Z"},"euvd":{"id":"EUVD-2026-65548","exploited":false,"provenance":"source"}}