Arbitrary Command Execution in MCP SSH Manager
CVE-2026-129995
What is CVE-2026-129995?
The MCP SSH Manager is vulnerable to arbitrary command execution due to the improper handling of user-controlled input. Specifically, functions such as ssh_backup_create, ssh_backup_restore, ssh_backup_schedule, and ssh_backup_list construct shell commands using unsanitized arguments in source files like src/backup-manager.js and src/index.js. This flaw allows attackers to execute arbitrary operating system commands by crafting malicious inputs related to databases, backup paths, or scheduled comments. Additionally, the ssh_backup_schedule function can facilitate persistent execution via cron jobs. Even restricted modes still expose the ssh_backup_list functionality, enabling command execution despite access limitations. Although partial remediation was implemented in response to CVE-2026-77383, it did not address these specific backup command builders. The issue has been rectified in version 3.8.5.
Affected Version(s)
mcp-ssh-manager < 3.8.5
