Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. russh
  4. ›
  5. CVE-2025-54804

CVE-2025-54804: russh is missing overflow checks during channel windows adjust

August 4, 2025 (updated August 5, 2025)

The channel window adjust message of the SSH protocol is used to track the free space in the receive buffer of the other side of a channel. The current implementation takes the value from the message and adds it to an internal state value. This can result in a integer overflow. If the Rust code is compiled with overflow checks, it will panic. A malicious client can crash a server.

References

  • github.com/Eugeny/russh
  • github.com/Eugeny/russh/commit/0eb5e406780890e21ff71dd25d731b30676478e5
  • github.com/Eugeny/russh/security/advisories/GHSA-h5rc-j5f5-3gcm
  • github.com/advisories/GHSA-h5rc-j5f5-3gcm
  • nvd.nist.gov/vuln/detail/CVE-2025-54804

Code Behaviors & Features

Detect and mitigate CVE-2025-54804 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.54.1

Fixed versions

  • 0.54.1

Solution

Upgrade to version 0.54.1 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

cargo/russh/CVE-2025-54804.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 19 Aug 2025 12:18:04 +0000.