CVE-2026-85660: cli-mcp-server 0.2.5 Command Allowlist Bypass via Shell Substitution
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.
Security readout for executives and security teams
Plain-English summary
cli-mcp-server 0.2.5 may let an unauthenticated remote attacker run commands that administrators intended to block. The flaw becomes relevant when shell operators are enabled. Successful abuse could compromise the confidentiality, integrity, and availability of the host running the service.
Executive priority
Treat confirmed 0.2.5 deployments with shell operators enabled as urgent, especially when remotely accessible. Immediately reduce reachability and privileges, then obtain vendor remediation guidance. Instances without the prerequisite configuration are lower priority but should still be inventoried and verified.
Technical view
The command validator does not adequately account for shell substitution when ALLOW_SHELL_OPERATORS is enabled. Consequently, a command accepted under ALLOWED_COMMANDS may cause the shell to execute an embedded, non-allowlisted command. This is classified as OS command injection (CWE-78) and scored CVSS 4.0 9.2.
Likely exposure
Exposure requires cli-mcp-server 0.2.5 with ALLOW_SHELL_OPERATORS enabled and attacker-controlled command requests reaching the service. Internet-accessible or broadly reachable instances are the primary concern. The bundle's affected-version metadata is inconsistent, so versions other than 0.2.5 cannot be confirmed here.
Exploitation context
The supplied record describes a remotely reachable, unauthenticated path with high complexity and a prerequisite condition. Successful exploitation could fully affect the host. The CVE is not listed as KEV, and the supplied sources provide no evidence of active exploitation.
Researcher notes
The core boundary failure is validation before shell interpretation: allowlist approval does not cover commands subsequently introduced through substitution. Assessment should focus on configuration, request reachability, execution identity, and downstream shell behavior. No corrected version, vendor patch, public exploitation, or broader affected-version range is established by the supplied evidence.
Mitigation direction
Disable ALLOW_SHELL_OPERATORS where operationally possible.
Restrict network access to trusted systems and authenticated users.
Run the service with minimal operating-system privileges.
Review vendor guidance for a corrected release or approved remediation.
Avoid relying solely on ALLOWED_COMMANDS while shell operators remain enabled.
Validation and detection
Inventory every cli-mcp-server deployment and record its exact version.
Confirm whether ALLOW_SHELL_OPERATORS is enabled in each deployment.
Identify which users and networks can submit command requests.
Review service and host logs for unexpected child processes or command execution.
Verify remediation using benign negative tests in an isolated environment.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-78: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
1ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-78 · source CWE mapping
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.