Description
cli-mcp-server 0.2.5 contains a command allowlist bypass vulnerability in the _validate_command_with_operators function when ALLOW_SHELL_OPERATORS is enabled. Attackers can use shell command substitution syntax like $(...) or backticks to execute non-allowlisted commands that bypass the ALLOWED_COMMANDS validation check.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MladenSU | cli-mcp-server | ≤ 0.2.5 | — |
References
- GitHub Issue #17 issue-tracking
- https://github.com/MladenSU/cli-mcp-server product
- https://github.com/MladenSU/cli-mcp-server/blob/main/src/cli_mcp_server/server.py technical-description
- VulnCheck Advisory: cli-mcp-server 0.2.5 Command Allowlist Bypass via Shell Substitution third-party-advisory