Skip to content
HighVulnerabilityLLM-specific

GHSA-p4h8-56qp-hpgv: SSH/SCP option injection allowing local RCE in @aiondadotcom/mcp-ssh

Published
Record updated
View JSON
Affected
  • @aiondadotcom/mcp-ssh < 1.3.5
Fixed in
1.3.5

Summary

Versions of @aiondadotcom/mcp-ssh before 1.3.5 passed the attacker-influenced hostAlias argument to ssh and scp without an argument terminator, so a value such as -oProxyCommand=... ran attacker-supplied commands locally before any network connection. On Windows, spawn with shell: true also let cmd.exe interpret shell metacharacters in hostAlias, command, localPath and remotePath. The LLM driving the server can be steered by prompt injection from untrusted content, so no malicious user is required.

Mitigation

Fixed in 1.3.5. Workarounds: None. Upgrade to 1.3.5.