CVE-2026-85660

cli-mcp-server 0.2.5 Command Allowlist Bypass via Shell Substitution

Published Sep 4, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Mladensu
Mladensu cli-mcp-server
Vendors & Products Mladensu
Mladensu cli-mcp-server
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 4, 2026, 5:50 PM
Reserved
Sep 4, 2026, 1:32 PM
Status
Deferred
Published
Sep 4, 2026, 3:17 PM
Modified
Sep 24, 2026, 8:43 PM