net-ssh is vulnerable to Denial of Service (DoS)
58
CVE Score
Medium
Denial of Service (DoS)
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.
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 you connect to an SSH server that is malicious or compromised.
0.0.1 - 7.3.4
Fixed in 7.3.5net-ssh is vulnerable to Denial of Service (DoS) 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.