CVE-2026-85660: cli-mcp-server 0.2.5 Command Allowlist Bypass via Shell Substitution

Published Sep 4, 2026
·
Updated

cli-mcp-server 0.2.5 contains a command allowlist bypass vulnerability in the validatecommandwithoperators function when ALLOWSHELLOPERATORS is enabled. Attackers can use shell command substitution syntax like $(...) or backticks to execute non-allowlisted commands that bypass the ALLOWEDCOMMANDS validation check.

Affected Software

1 affected component
cli-mcp-server=0.2.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade cli-mcp-server to a version that resolves this vulnerability.

    Fixed in 0.2.5
  2. Configuration

    Disable ALLOW_SHELL_OPERATORS to prevent command allowlist bypass via shell command substitution syntax ($(…) or backticks) in _validate_command_with_operators.

    cli-mcp-server ALLOW_SHELL_OPERATORS = disabled

Event History

Sep 4, 2026
CVE Published
via MITRE·02:32 PM
Data Sourced
via MITRE·02:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected by this bypass?

The issue affects cli-mcp-server 0.2.5 deployments where ALLOW_SHELL_OPERATORS is enabled. The provided information does not establish whether this setting is enabled by default.

2

What does an attacker need to exploit the issue?

An attacker must be able to submit a command processed by the vulnerable command-validation function while shell operators are allowed. They can embed a non-allowlisted command using shell substitution syntax such as $(...) or backticks.

3

What is the impact of successful exploitation?

Successful exploitation allows execution of commands that are not permitted by the ALLOWED_COMMANDS validation check. The reported severity vector indicates potential high impact to confidentiality, integrity, and availability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203