Tufantunc ssh-mcp Information Exposure Vulnerability

Vulnerability

A local information exposure vulnerability exists in Tufantunc ssh-mcp versions through 1.5.0. The issue arises in the Command Line Handler component, specifically within an unknown function in the file src/index.ts. This vulnerability allows SSH credentials to be passed via command-line options, which are then exposed to unprivileged local users. The process arguments can be read through standard Linux utilities, such as 'ps' or '/proc//cmdline', leading to unauthorized access to plaintext passwords. The vulnerability has been publicly disclosed and could be exploited by any local user on the same host.

Impact

Exploitation of this vulnerability results in the exposure of SSH credentials, including passwords for sudo and su access, from the command-line arguments of the running process. This credential leakage violates secure handling of sensitive information and could be exploited by local users to gain elevated privileges or access restricted commands.

Reproduction

The vulnerability can be reproduced by starting the ssh-mcp server and passing SSH credentials through the command-line options '--password', '--sudoPassword', and '--suPassword'. Once the server is running, these plaintext credentials can be retrieved by any local user from the process command-line string using 'ps' or by reading '/proc/<pid>/cmdline'.

Added: Apr 26, 2026, 12:18 PM
Updated: Apr 26, 2026, 12:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
4.6
remediation
0.0
relevance
6.8
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.