{"id":"CVE-2026-77383","aliases":["GHSA-4jx9-2fwj-pg4j"],"url":"https://o3.security/vulnerability/CVE-2026-77383","summary":"mcp-ssh-manager: Command injection in mcp-ssh-manager database helpers (ssh_db_list / ssh_db_dump / ssh_db_import)","details":"### Impact\n\nEvery `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`. A caller able to invoke a database tool with a crafted value (`$(...)`, backticks, `; cmd`, `| cmd`, `&& cmd`, bare `> file`) achieves **arbitrary command execution on the configured SSH target**, under the account the MCP server uses.\n\nThe 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.\n\nThe earlier v3.6.5 fix (#44) only hardened `ssh_db_query`'s query *text* via a single-quoted heredoc; the list/dump/import/restore builders — and the query builders' connection flags — were not covered.\n\n### Patches\n\nFixed 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 <db>` SQL clause.\n\n### Workarounds\n\nUpgrade 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`.\n\n### Credits\n\nResponsibly disclosed by **Ugur Ozer, Aeon AI Risk Management** (http://airiskmanagement.ca). mcp-ssh-manager thanks them for the private, well-documented report.","published":"2026-11-20T18:07:53.444Z","modified":"2026-11-25T20:45:54.483414139Z","cvss":null,"epss":{"score":0.00733,"percentile":0.5038,"asOf":"2026-11-30"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"mcp-ssh-manager","fixedVersion":"3.6.7"}],"fix":{"url":"https://github.com/bvisible/mcp-ssh-manager/commit/4c19b350f36f5f09f15662f8d19d2ba9cdf38bd0","label":"bvisible/mcp-ssh-manager@4c19b35"},"references":[{"type":"WEB","url":"https://github.com/bvisible/mcp-ssh-manager/releases/tag/v3.6.7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77383.json"},{"type":"ADVISORY","url":"https://github.com/bvisible/mcp-ssh-manager/security/advisories/GHSA-4jx9-2fwj-pg4j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77383"},{"type":"FIX","url":"https://github.com/bvisible/mcp-ssh-manager/commit/4c19b350f36f5f09f15662f8d19d2ba9cdf38bd0"},{"type":"FIX","url":"https://github.com/bvisible/mcp-ssh-manager/pull/51"},{"type":"PACKAGE","url":"https://github.com/bvisible/mcp-ssh-manager"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-25T20:45:54.483414139Z"}}