SCA: security update for github.com/sonirico/mcp-shell (GHSA-74hp-mggr-hv58)

high Tenable Self-Hosted Container Security Plugin ID 446284

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- mcp-shell is an MCP server for running shell commands securely, auditably, and on demand. Prior to 0.6.0,
the default security.yaml allows /usr/bin/git, while security.go omits ! from containsShellMetacharacters
and containsDangerousShellConstructs and applies no per-executable argument policy. A caller of the
shell_exec MCP tool can provide the command argument /usr/bin/git -c alias.pwn=!<arbitrary-command>,
causing Git to create a shell alias and execute arbitrary OS commands as the mcp-shell process user. The
default Docker image runs as mcpuser with Git installed and secure mode enabled, so the bypass is
exploitable in the default deployment without additional authentication beyond MCP connectivity. This
issue is fixed in version 0.6.0. (CVE-2026-55582)

Solution

Update the github.com/sonirico/mcp-shell library and its related packages to version 0.6.0 or later.

See Also

https://github.com/advisories/GHSA-74hp-mggr-hv58

Plugin Details

Severity: High

ID: 446284

Version: Revision 1.2

Type: Local

Family: SCA Checks

Published: 8/25/2026

Updated: 8/26/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.18

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-55582

CVSS v3

Risk Factor: High

Base Score: 8.4

Temporal Score: 7.3

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 8/25/2026

Vulnerability Publication Date: 8/25/2026

Reference Information

CVE: CVE-2026-55582

cwe: CWE-78