Integer Overflow Vulnerability in Russh SSH Client and Server Library
CVE-2025-54804
6.5MEDIUM
What is CVE-2025-54804?
The Russh library, which serves as a Rust SSH client and server, is vulnerable to an integer overflow issue in versions 0.54.0 and earlier. This vulnerability arises when the channel window adjust message is processed incorrectly, leading to a potential overflow in the internal state value that tracks free buffer space. Affected systems may experience a crash when a malicious client sends crafted messages, particularly if the Rust code is compiled without overflow checks. This issue has been addressed in version 0.54.1, which users are advised to upgrade to in order to mitigate the risk.
Affected Version(s)
russh < 0.54.1