Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| MladenSU / cli-mcp-server | affected 0 through 0.2.5 |
CWE
CWE-78
References
- https://github.com/MladenSU/cli-mcp-server/issues/17
- https://github.com/MladenSU/cli-mcp-server
- https://github.com/MladenSU/cli-mcp-server/blob/main/src/cli_mcp_server/server.py
- https://www.vulncheck.com/advisories/cli-mcp-server-0.2.5-command-allowlist-bypass-via-shell-substitution
ADP enrichment
No English description supplied.