Memory Allocation with Excessive Size Value Affecting russh package, versions <0.60.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Memory Allocation with Excessive Size Value vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-RUSSH-16321515
  • published29 Apr 2026
  • disclosed24 Apr 2026
  • creditcoreyleavitt

Introduced: 24 Apr 2026

NewCVE-2026-42189  (opens in a new tab)
CWE-770  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade russh to version 0.60.1 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the read_userauth_info_response function. An attacker can cause the server to allocate excessive memory and crash by sending a specially crafted USERAUTH_INFO_RESPONSE packet with a large count value before authentication. This is only exploitable if the server's keyboard-interactive authentication handler returns Auth::Partial, which is typical for multi-step authentication such as 2FA or TOTP.

CVSS Base Scores

version 4.0
version 3.1