CVE-2026-108953

mac-shell-mcp before 2.0.0 OS Command Injection via execute_command Arguments

Published Oct 12, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
mac-shell-mcp before 2.0.0 contains an OS command injection vulnerability that allows MCP clients to bypass the command whitelist by injecting shell metacharacters into execute_command arguments. Attackers or malicious prompts can call a safe command such as pwd with arguments like ';' to run forbidden commands as the server user without approval.

Analysis

AI-generated

Technical impact

mac-shell-mcp releases before 2.0.0 suffer from a command injection flaw that allows clients to inject shell metacharacters into the execute_command arguments, bypassing an internal whitelist. The vulnerability is a classic OS command injection (CWE-78) that can cause remote code execution as the server process, granting attackers full control over the underlying system. Because the injected characters can trigger additional commands after a safe command like pwd, an attacker need not rely on any privileged command; merely calling a benign command with a trailing ';' can launch arbitrary shell commands.

Affected Systems

The affected software is mac-shell-mcp, developed by cfdude. Versions older than 2.0.0 allow the injection described. No additional affected products or specific patch versions are enumerated in the advisory, so any deployments of pre-2.0.0 releases are at risk.

Risk and Exploitability

The CVSS score of 8.5 signals a high severity and indicates that exploitation can occur once a client is able to send crafted execute_command payloads. Based on the description, the likely attack vector is remote over a network connection. While no EPSS score is available, the lack of a KEV listing does not diminish the importance of applying a fix promptly. Attackers could potentially trigger the vulnerability by sending a prompt containing a malicious argument or modifying an existing prompt on the client side, then having the server execute unintended commands.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade mac-shell-mcp to version 2.0.0 or later
  • If an upgrade is not possible, restrict access to the execute_command endpoint to trusted hosts or authenticated users only
  • As a temporary fix, sanitize or strip shell metacharacters from the command arguments before they are passed to the OS, or disable the execute_command feature for untrusted clients

Generated by OpenCVE AI on October 12, 2026 at 13:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Cfdude
Cfdude mac-shell-mcp
Vendors & Products Cfdude
Cfdude mac-shell-mcp
Type Values Removed Values Added
Description mac-shell-mcp before 2.0.0 contains an OS command injection vulnerability that allows MCP clients to bypass the command whitelist by injecting shell metacharacters into execute_command arguments. Attackers or malicious prompts can call a safe command such as pwd with arguments like ';' to run forbidden commands as the server user without approval.
Title mac-shell-mcp before 2.0.0 OS Command Injection via execute_command Arguments
Weaknesses CWE-78
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/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
Oct 13, 2026, 4:58 PM
Reserved
Oct 11, 2026, 7:04 PM
Status
Deferred
Published
Oct 12, 2026, 1:17 PM
Modified
Oct 16, 2026, 7:18 PM