CVE-2025-54804 — Vulnerability in russh — CVE Details
russh is missing overflow checks during channel windows adjust
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.73%). Schedule for your next planned update.
Does your project use an affected russh version?
Paste your Cargo.lock to check it for CVE-2025-54804 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
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.
Details
According https://datatracker.ietf.org/doc/html/rfc4254#section-5.2, The value must not overflow. The incorrect handling is done in server/encrypted.rs and client/encrypted.rs in the handling of CHANNEL_WINDOW_ADJUST.
let amount = map_err!(u32::decode(&mut r))?;
...
channel.recipient_window_size += amount;
It could be replaced with something like
if let Some(ref mut channel) = enc.channels.get_mut(&channel_num) {
// rfc 4254: The window MUST NOT be increased above 2^32 - 1 bytes.
new_size = channel.recipient_window_size.saturating_add(amount);
channel.recipient_window_size = new_size;
}
...
PoC
A customized client code would be required to send a message with a big value like u32_max. Not done yet.
Impact
This problem seems only critical to a server. One user can crash the server, which might take down the service. A malicious server could also crash a single client, but this seems not very critical.
Advisory Timeline
- First published August 4, 2025 (479 days ago).
- Last revised September 10, 2026 — 401 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p russh --precise 0.54.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| russh crates.io · Affected: All versions | 0.54.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-190Integer OverflowMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
Frequently Asked Questions
- What is CVE-2025-54804?
- russh is missing overflow checks during channel windows adjust. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2025-54804?
- CVE-2025-54804 affects russh. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-54804 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 50.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-102823HIGH
russh: Client-side channel-scoped Handler callbacks fire for channel IDs the client never opened
- CVE-2026-48110HIGH
Russh SSH message fields were decoded through allocation-first parsers before field-specific bounds
- CVE-2026-42189HIGH
russh has pre-auth DoS via unbounded allocation in its keyboard-interactive auth handler
- CVE-2026-46673HIGH
Russh: Unchecked CryptoVec allocation and growth handling is reachable
- CVE-2026-102821MEDIUM
Russh: Unbounded memory exhaustion via CHANNEL_OPEN flood during a client-stalled rekey
- CVE-2023-48795MEDIUM
Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin
- CVE-2026-48107MEDIUM
Russh: Unchecked keyboard-interactive prompt count in client auth path
- CVE-2026-68930MEDIUM
Russh: Channel-scoped server callbacks can be reached without an open channel