Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102825 Overview
CVE-2026-102825 is an authentication throttling flaw in Russh, a Rust SSH client and server library maintained by Eugeny. Versions prior to 0.62.6 fail to enforce the max_auth_attempts limit defined in server::Config. The USERAUTH_REQUEST handling path in russh/src/server/encrypted.rs increments self.common.auth_attempts but never compares that counter against the configured cap. An unauthenticated remote client can submit unlimited authentication requests on a single connection. This weakens brute-force protection and increases backend authentication workload.
Critical Impact
Unauthenticated remote attackers can bypass the configured SSH authentication attempt limit, enabling extended online credential guessing against Russh-based servers.
Affected Products
- Russh SSH library versions prior to 0.62.6
- Rust applications embedding Russh server components
- SSH server deployments relying on server::Config.max_auth_attempts enforcement
Discovery Timeline
- 2026-09-29 - CVE-2026-102825 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-102825
Vulnerability Analysis
The vulnerability is an improper restriction of excessive authentication attempts [CWE-307]. Russh exposes a max_auth_attempts setting through server::Config, which deployments use to cap online guessing per SSH connection. The server-side handler reached from server::run_stream increments the internal self.common.auth_attempts counter each time an USERAUTH_REQUEST message arrives. The handler never reads that counter back or compares it against the configured maximum. As a result, the enforcement point is missing entirely from the authentication state machine.
Root Cause
The root cause is a missing comparison between self.common.auth_attempts and server::Config.max_auth_attempts inside russh/src/server/encrypted.rs. The counter is maintained but never consulted before continuing the authentication loop. Operators who configured max_auth_attempts expecting enforcement received no protection from the library. The fix in version 0.62.6 introduces the missing check and terminates connections that exceed the configured cap.
Attack Vector
An unauthenticated remote attacker opens a single SSH connection to a Russh server. The attacker then submits USERAUTH_REQUEST messages with candidate credentials repeatedly on that same connection. Because the cap is never evaluated, the server processes each attempt and returns pass or fail results. This enables sustained online password or key guessing without connection churn and increases CPU load from repeated credential verification. Attack complexity is elevated because success still depends on guessing valid credentials, but the guardrail intended to slow that process is absent.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-102825
Indicators of Compromise
- High volume of USERAUTH_REQUEST messages on a single SSH session exceeding the configured max_auth_attempts value
- Long-lived SSH connections from a single source IP with repeated authentication failures
- Elevated CPU utilization on SSH authentication backends without a corresponding rise in new TCP sessions
Detection Strategies
- Inventory Rust projects and container images to identify Russh versions prior to 0.62.6 using cargo tree or software bill of materials tooling
- Correlate SSH authentication failure counts per connection ID rather than per source IP to expose single-connection abuse
- Alert when authentication failure counts on one session exceed the value configured in server::Config.max_auth_attempts
Monitoring Recommendations
- Ingest SSH server logs into a centralized analytics platform and baseline authentication attempts per connection
- Monitor connection duration and message counts on port 22 or any custom SSH port hosting Russh services
- Track authentication backend latency and error rates to detect guessing-driven load spikes
How to Mitigate CVE-2026-102825
Immediate Actions Required
- Upgrade all Russh dependencies to version 0.62.6 or later and rebuild affected Rust binaries
- Audit downstream applications and container images that embed Russh for outdated versions
- Place rate-limiting network controls in front of Russh-based SSH services until patching is complete
Patch Information
The issue is fixed in Russh 0.62.6. Review the GitHub Security Advisory GHSA-g6xm-f9xp-qq35, the GitHub Release v0.62.6, and the upstream commit for the fix that adds the missing comparison against max_auth_attempts.
Workarounds
- Enforce per-source connection and packet rate limits at the firewall or load balancer to constrain guessing throughput
- Require public key authentication and disable password authentication where feasible to reduce guessing value
- Use fail2ban or equivalent tooling to terminate connections generating repeated authentication failures
# Update Russh in Cargo.toml to the patched version
# [dependencies]
# russh = "0.62.6"
cargo update -p russh
cargo build --release
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

