cli-mcp-server 0.2.5 Command Allowlist Bypass via Shell Substitution
MladenSU cli-mcp-server
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| MladenSU cli-mcp-server |
| No fix yet |
Original 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.
From the CVE record · VulnCheck