RubySec

Providing security resources for the Ruby community

GHSA-r75w-7fhp-84w8 (net-ssh): Pre-auth unbounded banner/identification buffering DoS

Pre-auth unbounded banner/identification buffering DoS

Published: October 05, 2026

SECURITY IDENTIFIERS

GEM

net-ssh

PATCHED VERSIONS

~> 7.3, >= 7.3.5 >= 8.0.0.rc2

DESCRIPTION

Summary

Net::SSH::Transport::ServerVersion#read! appends each received byte to @version (@version << b) until \n, then copies to @header (@header << @version). No maximum line length or total byte cap is enforced. A malicious server sending a long identification line without LF causes unbounded client memory growth pre-authentication.

Credit

Reported by zhangph (afldl), 2026-07.

RELATED