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.
Published: 2026-10-12
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: OS Command Injection
Action: Immediate Patch
AI Analysis

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.

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

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

History

Tue, 13 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 13 Oct 2026 08:15:00 +0000

Type Values Removed Values Added
First Time appeared Cfdude
Cfdude mac-shell-mcp
Vendors & Products Cfdude
Cfdude mac-shell-mcp

Mon, 12 Oct 2026 12:45:00 +0000

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


Subscriptions

Cfdude Mac-shell-mcp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-13T16:58:27.456Z

Reserved: 2026-10-11T19:04:35.850Z

Link: CVE-2026-108953

cve-icon Vulnrichment

Updated: 2026-10-13T16:40:53.746Z

cve-icon NVD

Status : Deferred

Published: 2026-10-12T13:17:28.307

Modified: 2026-10-16T19:18:44.867

Link: CVE-2026-108953

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T07:56:00Z

Weaknesses
  • CWE-78

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