mcp-ssh-manager: Command injection in database helpers (ssh_db_list / ssh_db_dump / ssh_db_import)
CVE-2026-77383 · GHSA-4jx9-2fwj-pg4j · published 2026-11-30
- Severity
- High
- CVSS score
- 8.7
- Chance of exploitation (EPSS)
- 0.70%
- Fixed in
- 3.6.7
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
Every ssh_db_* tool argument — database, table, collection, output/input file paths, and the user / host / port / password connection fields — arrives from tool-call parameters and was interpolated directly into a shell-evaluated command string in src/database-manager.js. The strongest path is ssh_db_list: it is documented and classified as read-only, so it remained allowed in the readonly and restricted per-server security modes while still reaching an injectable builder — bypassing the boundary those modes are meant to enforce. ssh_db_dump / ssh_db_import are blocked in readonly but remain injectable in the default unrestricted mode. …
Upgrade mcp-ssh-manager to 3.6.7 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Fixed in 3.6.7. A centralized shellQuote() (single-quote wrapping + '\'' escaping) now wraps every interpolated caller-controlled value across all 15 database builders. The MySQL list-tables database is passed as a shell-quoted positional argument instead of an interpolated USE SQL clause.
Upgrade to 3.6.7. If applications cannot upgrade immediately, avoid exposing the ssh_db_* tools (disable the database tool group) and do not rely on readonly / restricted modes to contain a caller that can reach ssh_db_list.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp-ssh-manager | npm | <= 3.6.6 | 3.6.7 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- Criticalmcp-server-git runs a repo's gpg.program via git_merge and git_branchmcp-server-git
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.