Intel

AIKIDO-2026-940971

net-ssh is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-r75w-7fhp-84w8 Published Yesterday

58

Medium Risk

This Affects:

RUBYnet-ssh
0.0.1 - 7.3.4
Fixed in 7.3.5
Are you affected? Scan for Free

TL;DR

Net::SSH::Transport::ServerVersion#read! appends every byte received from the server to @version, then to @header, one at a time until it sees a newline, with no maximum length on either buffer. A malicious server that sends an identification line without a trailing newline forces the client to keep buffering indefinitely before authentication, growing memory without limit. The fix caps the identification string length and disconnects once it is exceeded.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you connect to an SSH server that is malicious or compromised.

Background info

net-ssh is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 7.3.4.

How to fix this

Upgrade the net-ssh library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform