Skip to content
High 8.8

mcp-ssh-managerにコマンドインジェクションの脆弱性、遠隔からOSコマンドを実行されるおそれ

CVE-2026-129995 First seen on SecPulse

Summary

mcp-ssh-managerの3.8.5より前のバージョンには、バックアップ機能でシェルのメタ文字を無害化せずにリモートのコマンドを組み立てる脆弱性があり、管理対象サーバーでSSHユーザーの権限によりOSコマンドを実行されるおそれがあります。読み取り専用や制限付きモードでも一部の操作で実行されるため、3.8.5以降の修正版へすぐ更新してください。悪用の有無は公表されていません。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

mcp-ssh-managerの3.8.5より前のバージョンには、バックアップ機能でシェルのメタ文字を無害化せずにリモートのコマンドを組み立てる脆弱性があり、管理対象サーバーでSSHユーザーの権限によりOSコマンドを実行されるおそれがあります。読み取り専用や制限付きモードでも一部の操作で実行されるため、3.8.5以降の修正版へすぐ更新してください。悪用の有無は公表されていません。

Affected packages

PackageAffected → Fixed
bvisiblemcp-ssh-manager —
npmmcp-ssh-manager
< 3.8.5→ 3.8.5
Original description The description as published by the source.

Summary

src/backup-manager.js builds shell command strings for the ssh_backup_* tools by concatenating caller-controlled tool arguments (database, dbUser, dbPassword, dbHost, backupDir, paths, exclude, …) directly into the string with no shell escaping. The resulting string is passed to ssh.execCommand(), which runs it through the remote server's login shell. An argument that contains shell metacharacters (;, $(...), backticks, |) therefore executes arbitrary commands on the target server. This is a remote code execution (RCE) vulnerability: an attacker who controls the tool arguments gains arbitrary command execution on every remote server the MCP instance manages, running as the configured SSH user.

This is the same vulnerability class that was fixed for the database helpers in CVE-2026-77383 / GHSA-4jx9-2fwj-pg4j. That fix added a centralized shellQuote() and was applied to src/database-manager.js (the ssh_db_* tools) only. The parallel builders in src/backup-manager.js (the ssh_backup_* tools) were not covered and remain vulnerable in the current release, v3.8.0.

$ grep -c shellQuote src/database-manager.js src/backup-manager.js
src/database-manager.js:95        <- fixed (CVE-2026-77383)
src/backup-manager.js:0           <- NOT fixed

Affected component

  • Package: mcp-ssh-manager (npm), repository bvisible/mcp-ssh-manager
  • Affected versions: <= 3.8.0 (latest at time of report)
  • Fil…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details