Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. russh
  4. ›
  5. GHSA-g9hv-x236-4qp3

GHSA-g9hv-x236-4qp3: Russh: client wrong-length X25519 `clone_from_slice` panic (pre-auth DoS)

July 24, 2026

A malicious SSH server can crash a russh client session with a single malformed key-exchange reply, causing a pre-authentication Denial-of-Service before the server host key is verified. The embedding process itself stays up, but the connection is killed deterministically.

References

  • github.com/Eugeny/russh/commit/a7fc1eb5717264e31c3c5f7dd849b73989a08f3d
  • github.com/Eugeny/russh/releases/tag/v0.62.4
  • github.com/Eugeny/russh/security/advisories/GHSA-g9hv-x236-4qp3
  • github.com/advisories/GHSA-g9hv-x236-4qp3

Code Behaviors & Features

Detect and mitigate GHSA-g9hv-x236-4qp3 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.62.4

Fixed versions

  • 0.62.4

Solution

Upgrade to version 0.62.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-704: Incorrect Type Conversion or Cast
  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

cargo/russh/GHSA-g9hv-x236-4qp3.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:23 +0000.