Skip to content
HighVulnerability

GHSA-4jx9-2fwj-pg4j: mcp-ssh-manager: Command injection in database helpers (ssh_db_list / ssh_db_dump / ssh_db_import)

Published
Record updated
View JSON
Affected
  • mcp-ssh-manager <= 3.6.6
Fixed in
3.6.7
  • released July 11, 2026, 142 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

mcp-ssh-manager versions before 3.6.7 interpolate caller-supplied values from the ssh_db_* tool arguments (database, table, collection, file paths, and connection fields) directly into a shell-evaluated command in src/database-manager.js. A caller who supplies a crafted value can run arbitrary commands on the configured SSH target under the MCP server's account. ssh_db_list stays allowed in readonly and restricted security modes while still reaching an injectable builder, which bypasses those modes' boundary.

Mitigation

Fixed in 3.6.7. Upgrade to 3.6.7. If an immediate upgrade is not possible, avoid exposing the ssh_db_* tools by disabling the database tool group, and do not rely on readonly or restricted modes to contain a caller that can reach ssh_db_list.