Intel

AIKIDO-2026-719101

net-ssh is vulnerable to OS Command Injection

GHSA-3x7f-q7wf-fp73Published Oct 6, 2026
October 6, 2026

59

CVE Score

Medium

OS Command Injection

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the net-ssh library to the patch version.

Who does this affect?

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.

Package

Versions

0.0.1 - 7.3.4

Fixed in 7.3.5

Background info

net-ssh is vulnerable to OS Command Injection in versions 0.0.1 - 7.3.4.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea