Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl MCP backup tool arguments
-
DeliveryEmbed shell metacharacters in backup/database/path args
-
ExploitUnescaped string reaches remote login shell
-
ExecutionExecute arbitrary OS commands as SSH user
-
ImpactPersist via ssh_backup_schedule cron entry
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 that the attacker control the tool arguments passed to the ssh_backup_* tools - supplied by a malicious or compromised MCP client, or steered through indirect prompt injection in content the agent reads; fully trusted benign operator input does not trigger it. The concrete prerequisites are the unescaped caller-controlled fields (database, dbUser, dbPassword, dbHost, backupDir, paths, exclude, targetPath, schedule, cronComment) interpolated by the src/backup-manager.js builders and inline handlers in src/index.js. In default 'unrestricted' mode, ssh_backup_create, ssh_backup_restore and ssh_backup_schedule are reachable (the last persisting via cron). Critically, ssh_backup_list is NOT routed through applyServerPolicy, so it remains callable in 'readonly' and 'restricted' modes, allowing command execution on servers the operator believed were locked to no-command access. LIMITING factors: the attacker must be able to influence MCP tool arguments (per PR:L, some low-privilege position in the MCP workflow), the server must run mcp-ssh-manager <= 3.8.4, and no exploitation occurs when only trusted benign values are supplied. |
| Impact | Signals point to a genuine upgrade-this-week priority but not a mass-exploitation emergency. CVSS 3.1 is 8.8 (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H) - network-reachable, low-complexity, requiring only low privilege, yielding full RCE as the configured SSH user on every managed server. The vuln.today Decision label is 'this_week', consistent with high severity plus no evidence of in-the-wild abuse. No EPSS score was supplied, so statistical exploitation probability cannot be stated. The CVE is NOT in CISA KEV, so there is no confirmed active exploitation. A detailed public PoC reference exists in the GHSA-qwwm-vrm9-4mw8 advisory (standalone poc.mjs, session/live-repro logs and a screenshot) demonstrating injection through both ssh_backup_create and the readonly-mode ssh_backup_list path; the structured input does not mark it 'Publicly available (confirmed)', so treat it as a public PoC reference that is not independently verified here as packaged working exploit code. No SSVC decision vector (automatable / technical impact) was provided. The signals are internally consistent: high technical impact, authenticated low-privilege network vector, public PoC, but no KEV and no EPSS. Practical risk is amplified by the security-mode bypass - ssh_backup_list skips the policy check and runs under readonly/restricted, defeating the exact control operators rely on - and by ssh_backup_schedule granting cron persistence. Net: a real priority for anyone running mcp-ssh-manager <= 3.8.4, driven by impact and a working-looking PoC rather than by confirmed widespread exploitation. |
| Exploit ScenarioDerived | An MCP agent running mcp-ssh-manager ingests attacker-influenced content (indirect prompt injection) or is driven by a malicious or compromised MCP client, causing it to invoke ssh_backup_create or ssh_backup_list with a backup argument such as database 'appdb; id > /tmp/pwned; #'. Because the backup builders concatenate arguments into the remote shell string with no escaping, the injected command executes on the managed server as the configured SSH user. A public PoC reference in the advisory demonstrates this end-to-end over a real sshd, including the readonly-mode bypass via ssh_backup_list and cron persistence via ssh_backup_schedule. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
OS command injection in mcp-ssh-manager (npm package bvisible/mcp-ssh-manager) in versions up to and including 3.8.4 lets an attacker who controls the arguments of the ssh_backup_create, ssh_backup_restore, ssh_backup_schedule and ssh_backup_list tools run arbitrary commands on every managed remote server as the configured SSH user. The flaw is that src/backup-manager.js concatenates caller-supplied database, connection, path, exclusion, schedule and comment values into shell strings with no escaping (0 uses of shellQuote across 9 builders), and ssh_backup_schedule can additionally persist execution via cron. Most seriously, ssh_backup_list is never routed through applyServerPolicy, so the injected command still executes on servers the operator hardened to 'readonly' or 'restricted' mode; per the CVSS vector this is a low-privileged (PR:L), network-reachable path, and a public PoC reference exists in the advisory but is not verified as working exploit code, with no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to mcp-ssh-manager 3.8.5 (https://github.com/bvisible/mcp-ssh-manager/releases/tag/v3.8.5; advisory https://github.com/bvisible/mcp-ssh-manager/security/advisories/GHSA-qwwm-vrm9-4mw8; fix commit d40daa8a43388dfaedf593bff18f0064d50f9633). That release extracts shellQuote() into src/shell-quote.js and applies it to every interpolated argument in the backup builders - database, user, password, host, port, outputFile, outputDir, paths, exclude, restore database, and schedule/cronComment - as well as to the inline mkdir -p, stat and metadata interpolations in src/index.js, adds safeInteger() for numeric values that still reach command strings, and routes ssh_backup_list through applyServerPolicy so it obeys readonly/restricted semantics. Because the policy bypass means ssh_backup_list remains command-bearing even on servers an operator hardened to readonly or restricted in versions <= 3.8.4, the vendor's complete fix is updating; until then, keep the ssh_backup_* tools from being exposed to untrusted or prompt-injectable MCP clients (removing them from the tool surface removes the sink but also removes backup capability), and treat 'readonly'/'restricted' mode as non-binding for SSH command execution on those hosts. Rotate or review the credentials used by the configured SSH user on any server where backup tool arguments could have been influenced.
Affected VersionsENISA
Affected Packages
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 an MCP server that exposes SSH operations as model-callable tools, using an encrypted vault, a human-approval layer, a live audit trail, and server security modes. Per CWE-78, the root cause is improper neutralization of shell metacharacters: the backup builders construct command strings by string concatenation and hand them to SSHManager.execCommand(), which passes the string to ssh2's client.exec() so the remote sshd evaluates it through the user's login shell - making ';', '$()', backticks and '|' executable. The advisory shows the pattern in buildMySQLDumpCommand, where the database name is fully unquoted and the password is only wrapped in single quotes (breakable with a quote character), and it enumerates all confirmed sinks: buildMySQL/PostgreSQL/MongoDB/FilesBackupCommand plus inline mkdir -p, stat, buildSaveMetadataCommand and buildCleanupCommand (ssh_backup_create), buildRestoreCommand (ssh_backup_restore), the remote script plus buildCronScheduleCommand (ssh_backup_schedule), and buildListBackupsCommand's find "${backupDir}" (ssh_backup_list). The same defect class was fixed for src/database-manager.js under CVE-2026-77383, which introduced shellQuote() but never covered these parallel builders - a grep shows 95 shellQuote call sites in database-manager.js and zero in backup-manager.js. The policy layer compounds the issue: ssh_backup_list is absent from READONLY_BLOCKED_TOOLS and COMMAND_BEARING_TOOLS and never calls applyServerPolicy, so evaluatePolicy returns allowed:true for it in both readonly and restricted modes. The 3.8.5 commit extracts the quoting helper into src/shell-quote.js and applies it across backup-manager.js, health-monitor.js and remaining inline commands in index.js, adds a safeInteger() helper for numeric arguments, validates the PID in buildProcessInfoCommand, and routes ssh_tail and ssh_service_status through the policy layer, backed by a test harness of 340 builder × argument × payload combinations run through a real /bin/sh.
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable MCP tool with low-complexity injection; PR:L because the attacker must occupy a low-privilege MCP-client or prompt-influence position, no user interaction, and full RCE gives C/I/A High.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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.8.5, ssh_backup_create, ssh_backup_restore, ssh_backup_schedule, and ssh_backup_list build remote shell commands from caller-controlled values in src/backup-manager.js and inline backup handlers in src/index.js without neutralizing shell metacharacters. Crafted database, connection, backup directory, path, exclusion, schedule, or comment arguments can therefore execute arbitrary OS commands on managed remote servers as the configured SSH user. ssh_backup_schedule can persist execution through cron. ssh_backup_list does not pass through the server policy check and remains available in readonly and restricted modes, allowing command execution despite those restrictions. Tool arguments can be supplied by a malicious or compromised MCP client or steered through indirect prompt injection; fully trusted benign arguments do not trigger the issue. The earlier database-helper remediation for CVE-2026-77383 applied shell quoting to src/database-manager.js but did not cover these parallel backup builders. This issue is fixed in version 3.8.5.
Technical POC Analysis
CWE-78 (OS command injection).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-129995 in the mcp-ssh-manager npm package allows an attacker with low-level access to execute arbitrary commands on all managed remote servers, including those configured as read-only, by injecting commands through backup tool arguments. This impacts any organization using this tool for SSH management, potentially leading to full server compromise and persistence via cron. Leadership should prioritize immediate assessment and mitigation due to the high severity and lack of a patch.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict access to the tool's interface to trusted users, implement strict input validation and escaping for all tool arguments, monitor for anomalous command execution, and apply network segmentation to limit blast radius.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-131719
GHSA-qwwm-vrm9-4mw8
NVD
CVE.org
EPSS
Exploit-DB