net-ssh is vulnerable to OS Command Injection
59
CVE Score
Medium
OS Command Injection
Net::SSH::Proxy::Command and Net::SSH::Proxy::Jump substitute the proxy host, port, and remote_user values into a command line template and run the result through IO.popen, which passes the string to /bin/sh -c without escaping any of those values. An application that passes externally influenced host, port, or user data to Net::SSH.start with a proxy configured, or to Proxy::Jump.new, lets shell metacharacters in that data run arbitrary commands on the SSH client host. The fix validates or escapes these values before they reach the shell.
Upgrade the net-ssh library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application passes externally influenced host, port, or user values into a configured SSH proxy command.
0.0.1 - 7.3.4
Fixed in 7.3.5net-ssh is vulnerable to OS Command Injection in versions 0.0.1 - 7.3.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.