# CVE-2026-55582: mcp-shell: Secure Mode Allowlist Bypass via Git Shell Alias

- 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.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T15:37:43.486Z
- Modified: 2026-09-09T21:07:31.353Z
- Also known as: GHSA-74hp-mggr-hv58, GO-2026-6291
- Weaknesses: CWE-78
- 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 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.

(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-74hp-mggr-hv58> (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-55582](https://www.cve.org/CVERecord?id=CVE-2026-55582), CVE Terms of Use, modified 2026-08-28
- GitHub Advisory Database: [GHSA-74hp-mggr-hv58](https://github.com/advisories/GHSA-74hp-mggr-hv58), CC-BY-4.0, modified 2026-08-26
- Go Vulnerability Database: [GO-2026-6291](https://pkg.go.dev/vuln/GO-2026-6291), CC-BY-4.0, modified 2026-08-26
- NVD: [CVE-2026-55582](https://nvd.nist.gov/vuln/detail/CVE-2026-55582), Public domain, modified 2026-09-09

---

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