CVE-2025-54804

6.5 MEDIUM

📋 TL;DR

This vulnerability in the Russh SSH library allows integer overflow when processing SSH channel window adjust messages, potentially causing a denial-of-service. Attackers can crash servers by sending malicious window size values. Systems using Russh versions 0.54.0 and below are affected.

💻 Affected Systems

Products:
  • russh SSH client and server library
Versions: 0.54.0 and below
Operating Systems: All platforms using Rust
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Rust applications compiled with overflow checks enabled

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Malicious client causes server crash leading to complete denial-of-service for SSH services

🟠

Likely Case

Targeted DoS attacks against vulnerable SSH servers causing service disruption

🟢

If Mitigated

Minimal impact with proper network segmentation and monitoring

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires SSH client access and knowledge of the protocol

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 0.54.1

Vendor Advisory: https://github.com/Eugeny/russh/security/advisories/GHSA-h5rc-j5f5-3gcm

Restart Required: No

Instructions:

1. Update Russh dependency to version 0.54.1 or higher
2. Rebuild and redeploy affected applications
3. Test SSH functionality

🔧 Temporary Workarounds

Disable overflow checks

all

Compile Rust code without overflow checks (not recommended for security)

Add to Cargo.toml: [profile.release] overflow-checks = false

🧯 If You Can't Patch

  • Implement network segmentation to restrict SSH access to trusted sources only
  • Deploy rate limiting on SSH connections to prevent rapid exploitation attempts

🔍 How to Verify

Check if Vulnerable:

Check Cargo.toml or Cargo.lock for russh version <=0.54.0

Check Version:

grep -r "russh" Cargo.toml Cargo.lock

Verify Fix Applied:

Verify russh version is >=0.54.1 in dependencies

📡 Detection & Monitoring

Log Indicators:

  • SSH server crashes or panics
  • Unexpected connection resets

Network Indicators:

  • Multiple SSH connections with abnormal window size adjustments

SIEM Query:

source="ssh" AND (event="panic" OR event="crash")

🔗 References

📤 Share & Export