Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/sonirico/mcp-shell
  4. ›
  5. CVE-2026-55582

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

August 25, 2026

mcp-shell’s “secure mode” is designed to restrict command execution to an allowlist of executables defined in security.yaml. The default configuration includes /usr/bin/git. The security validator in security.go blocks common shell metacharacters (|&;<>(){}[]$\``) but omits !, which is the prefix Git uses to execute shell aliases (alias.NAME=!CMD). An attacker who can invoke the shell_execMCP tool can pass/usr/bin/git -c alias.pwn=!as the command argument, bypassing all validation and achieving arbitrary OS command execution as themcp-shellprocess user. The default Docker image runs asmcpuser` (UID 1000) with Git installed and secure mode enabled, making this exploitable in the default deployment with no authentication required.

References

  • github.com/advisories/GHSA-74hp-mggr-hv58
  • github.com/sonirico/mcp-shell/commit/f31377fce6ec31114e5a4398c0e5270552bce09f
  • github.com/sonirico/mcp-shell/pull/16
  • github.com/sonirico/mcp-shell/releases/tag/v0.6.0
  • github.com/sonirico/mcp-shell/security/advisories/GHSA-74hp-mggr-hv58
  • nvd.nist.gov/vuln/detail/CVE-2026-55582

Code Behaviors & Features

Detect and mitigate CVE-2026-55582 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.0

Fixed versions

  • 0.6.0

Solution

Upgrade to version 0.6.0 or above.

Impact 8.4 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/github.com/sonirico/mcp-shell/CVE-2026-55582.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 06 Sep 2026 12:16:58 +0000.