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.
Published: 2026-09-04
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Command Execution
Action: Immediate Patch
AI Analysis

Impact

cli-mcp-server 0.2.5 contains a flaw in the _validate_command_with_operators function that allows attackers to use shell command substitution syntax such as $(...) or backticks to bypass the ALLOWED_COMMANDS check. This bypass permits the execution of arbitrary commands that are not in the allowlist, leading to full remote code execution and compromising both confidentiality and integrity of the affected system.

Affected Systems

The vulnerable component is the MladenSU:cli-mcp-server product, specifically version 0.2.5. Only this version is documented as affected.

Risk and Exploitability

The CVSS score of 9.2 classifies this flaw as critical, indicating a high likelihood of successful exploitation and severe impact. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack vector is remote, where an attacker with input authority can supply malicious command strings; the vulnerability is exploitable only if ALLOW_SHELL_OPERATORS is enabled, and no additional system compromises or privileged access are required beyond the ability to send commands to the server.

Generated by OpenCVE AI on September 4, 2026 at 15:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a patched version of cli‑mcp‑server that removes the bypass; if no patch is available, check the project repository for updates.
  • If upgrading is not immediately possible, disable ALLOW_SHELL_OPERATORS in the server configuration or remove it from the allowed commands list to eliminate the backdoor.
  • Implement input validation to ensure only explicitly whitelisted commands are accepted, and strip or reject shell substitution characters such as $( ) and backticks, thereby mitigating the underlying OS Command Injection weakness.
  • Limit access to the command execution interface so that only authorized users can issue commands, adding another layer of defense against malicious use.

Generated by OpenCVE AI on September 4, 2026 at 15:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 07 Sep 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Mladensu
Mladensu cli-mcp-server
Vendors & Products Mladensu
Mladensu cli-mcp-server

Fri, 04 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 04 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
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.
Title cli-mcp-server 0.2.5 Command Allowlist Bypass via Shell Substitution
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, 'vector': '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'}


Subscriptions

Mladensu Cli-mcp-server
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-04T17:50:30.858Z

Reserved: 2026-09-04T13:32:27.594Z

Link: CVE-2026-85660

cve-icon Vulnrichment

Updated: 2026-09-04T17:50:27.071Z

cve-icon NVD

Status : Deferred

Published: 2026-09-04T15:17:43.490

Modified: 2026-09-24T20:43:32.537

Link: CVE-2026-85660

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-07T08:26:28Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')