| Title | tufantunc ssh-mcp 1.5 Command Injection |
|---|
| Description | A command injection flaw exists in ssh-mcp when su mode is active and the description field is appended into shell input. description only escapes # but not line breaks, so a value like foo\nuseradd hacker is written into the root shell session (shell.write()), causing attacker-controlled commands to execute as root. This gives an adversary arbitrary root command execution through a seemingly innocuous metadata field and is a critical privilege escalation vector. |
|---|
| Source | ⚠️ https://github.com/tufantunc/ssh-mcp/issues/44 |
|---|
| User | BlackBird_BB (UID 96773) |
|---|
| Submission | 04/07/2026 05:37 (20 days ago) |
|---|
| Moderation | 04/25/2026 17:52 (19 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 359619 [tufantunc ssh-mcp up to 1.5.0 src/index.ts shell.write Description command injection] |
|---|
| Points | 20 |
|---|