Submit #798528: tufantunc ssh-mcp 1.5 Command Injectioninfo

Titletufantunc ssh-mcp 1.5 Command Injection
DescriptionA 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)
Submission04/07/2026 05:37 (20 days ago)
Moderation04/25/2026 17:52 (19 days later)
StatusAccepted
VulDB entry359619 [tufantunc ssh-mcp up to 1.5.0 src/index.ts shell.write Description command injection]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!