Skip to main content

mcp-ssh-manager CVE-2026-77383

| EUVDEUVD-2026-131718 HIGH
OS Command Injection (CWE-78)
2026-11-20 GitHub_M GHSA-4jx9-2fwj-pg4j
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Invoke ssh_db_list via MCP tool call
  2. Exploit
    Embed shell metacharacters in database/table parameter
  3. Execution
    Remote shell evaluates crafted command string
  4. Impact
    Execute arbitrary commands on SSH target as MCP account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a caller able to invoke the ssh_db_* MCP tools against the server (PR:L) and supply crafted parameter values. ssh_db_list is reachable even in the readonly and restricted per-server security modes, bypassing the command-execution boundary those modes enforce; ssh_db_dump, ssh_db_import, and ssh_db_restore are blocked in readonly mode but remain exploitable in the default unrestricted mode. Exploitation is limited by needing tool-invocation access to the MCP server, and the resulting command execution lands on the configured SSH target under the account the MCP server uses rather than on the server host itself.

Impact

This is a genuine high-priority issue for anyone running mcp-ssh-manager, not an inflated-CVSS outlier. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) scores 8.7 with full high impact to confidentiality, integrity and availability (VC:H/VI:H/VA:H), and the source diff confirms the mechanism: caller-controlled values interpolated into shell-evaluated command strings (CWE-78), fixed by a centralized shellQuote() wrapper. PR:L indicates the attacker must be able to invoke the MCP database tools, so this is not fully unauthenticated - but in an MCP deployment the 'caller' can be an AI assistant subject to prompt injection, which lowers the practical bar. The decision label is 'this_week' (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed public exploit code are present in the input; a detailed private PoC was responsibly disclosed to the vendor and the fix PR/commit are public, so no public weaponized exploit is identified, but the vulnerability and its trigger are well documented. The most important nuance: ssh_db_list is classified read-only and remains reachable in the readonly and restricted security modes, so those containment modes do NOT protect against it - defenders relying on them are exposed; dump/import/restore are blocked in readonly but remain exploitable in the default unrestricted mode.

Exploit ScenarioDerived

A low-privileged caller (or a prompt-injected AI assistant) invokes ssh_db_list with a database, table, or connection-field value containing shell metacharacters such as $(...), backticks, or '; cmd'. Because database-manager.js interpolates that value into a shell-evaluated command string without neutralization, the crafted command executes on the configured SSH target under the account the MCP server uses. No public working exploit code is identified, but the flaw is confirmed by the vendor advisory and the fix diff, and ssh_db_list remains reachable even in readonly and restricted modes.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Command injection in mcp-ssh-manager through 3.6.6 lets a caller who can invoke the ssh_db_list, ssh_db_dump, ssh_db_import or ssh_db_restore tools run arbitrary shell commands on the configured SSH target, under the account the MCP server uses, by embedding metacharacters such as $(...), backticks, ; , |, && or bare redirects in database, table, collection, file path, user, host, port or password arguments. The most dangerous path is ssh_db_list, which is classified as read-only and therefore remains permitted in the readonly and restricted per-server security modes, so it defeats the command-execution boundary those modes are supposed to enforce; the dump, import and restore builders are blocked in readonly mode but still injectable in the default unrestricted mode. Exploitation requires tool-invocation access to the MCP server (authenticated low-privilege, PR:L) and lands on the SSH target rather than the server host; no public exploit code and no active exploitation are identified at time of analysis, and vendor-released patch 3.6.7 is available.

RemediationAI

Upgrade to mcp-ssh-manager 3.6.7, which contains the fix from PR #51 (https://github.com/bvisible/mcp-ssh-manager/pull/51, commit https://github.com/bvisible/mcp-ssh-manager/commit/4c19b350f36f5f09f15662f8d19d2ba9cdf38bd0) and release notes at https://github.com/bvisible/mcp-ssh-manager/releases/tag/v3.6.7; that version adds a centralized shellQuote() applied to every caller-controlled value across all 15 database builders, plus an injection regression test. If an immediate upgrade is not possible, the vendor's stated workaround is to avoid exposing the ssh_db_* tools by disabling the database tool group, and explicitly not to rely on readonly or restricted per-server security modes to contain a caller who can reach ssh_db_list, since that tool remains allowed in those modes while still reaching an injectable builder. Note the trade-off: disabling the database tool group removes all ssh_db_* functionality, including legitimate read-only listing and dumps, and is only a containment measure until 3.6.7 can be deployed.

Affected VersionsENISA

mcp-ssh-manager < 3.6.7

Affected Packages

npm mcp-ssh-manager fix: 3.6.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

mcp-ssh-manager is a Node.js Model Context Protocol server that executes commands on remote hosts on behalf of an AI assistant, with human approval, an encrypted vault and an audit trail. The flaw is CWE-78 (OS command injection): src/database-manager.js builds command strings for MySQL, PostgreSQL and MongoDB tooling (mysqldump, pg_dump, mongodump and their import/restore counterparts) by direct template-literal interpolation of caller-supplied tool parameters into a string that is subsequently evaluated by a shell on the SSH target. Because the strings are shell-evaluated, characters like $(...), backticks, semicolons, pipes, ampersands and redirections are interpreted by the remote shell instead of being treated as data. The v3.6.5 hardening (#44) addressed only ssh_db_query's query text via a single-quoted heredoc and left the list, dump, import and restore builders - plus the connection flags used by the query builders (user, host, port, password) - unprotected. The 3.6.7 fix (PR #51, commit 4c19b350f36f5f09f15662f8d19d2ba9cdf38bd0) introduces a centralized shellQuote() that wraps each value in single quotes and escapes embedded single quotes as '\'' and applies it across all 15 database builders; the MySQL list-tables database is additionally passed as a shell-quoted positional argument rather than an interpolated USE <db> SQL clause. A new tests/test-database-injection.js suite was added to the test pipeline. The precise trigger for any single builder beyond the documented metacharacter injection is described in the advisory as raw interpolation of tool-call parameters; no other mechanism is stated.

Know when Mcp Ssh Manager gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Network-reachable MCP tool call with no user interaction; PR:L because the caller must be able to invoke database tools; full code execution on the SSH target yields C:H/I:H/A:H.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 20, 2026 - 20:18 EUVD
CVE Published
Nov 20, 2026 - 18:07 cve.org
HIGH 8.7

DescriptionCVE.org

mcp-ssh-manager is an MCP server for managing servers over SSH with human approval, an encrypted vault, and a live audit trail. Prior to 3.6.7, ssh_db_list, ssh_db_dump, ssh_db_import, and ssh_db_restore in src/database-manager.js interpolate caller-controlled database, table, collection, file path, user, host, port, and password values into shell-evaluated command strings without neutralization. Shell metacharacters in these arguments therefore execute arbitrary commands on the configured SSH target as the account used by the MCP server. ssh_db_list is classified as read-only and remains available in readonly and restricted server security modes, so this path bypasses the command-execution boundary those modes are intended to enforce. The dump and import builders are blocked in readonly mode but remain vulnerable in the default unrestricted mode. The earlier version 3.6.5 hardening covered only ssh_db_query query text; it did not protect the list, dump, import, or restore builders, or the connection flags used by query builders. This issue is fixed in version 3.6.7.

Technical POC Analysis

CWE-78: Improper Neutralization of Special Elements used in an OS Command.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-77383 is a high-severity command injection flaw in mcp-ssh-manager through version 3.6.6 that allows an authenticated low-privileged caller to execute arbitrary commands on connected SSH targets, even in read-only security modes. This undermines the intended command-execution boundary, putting downstream database systems and SSH-managed hosts at risk from insider or compromised-account abuse. Leadership should prioritize remediation because the vulnerability enables lateral movement and potential data compromise across infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict access to the MCP server to fully trusted users, disable or strictly validate arguments for the ssh_db_list, ssh_db_dump, ssh_db_import, and ssh_db_restore tools, enforce application-level input sanitization to reject shell metacharacters, and monitor SSH target logs for anomalous command execution.

Threat Intelligence Overview

EPSS Score
0.7%
Top 46% exploitable
Prevalence
Low
niche npm MCP server for SSH management, limited production footprint
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy