Skip to main content
Vulnerability Database/CVE-2026-102824

CVE-2026-102824: Russh Hybrid ML-KEM Key Exchange Vulnerability

CVE-2026-102824 is a key exchange flaw in Russh SSH library that allows malicious peers to force X25519 contribution to zero, making the shared secret depend only on ML-KEM. This post covers technical details, affected versions, and mitigation.

Published:

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-102824 Overview

Russh is a Rust SSH client and server library used to build custom SSH endpoints. Versions prior to 0.63.0 contain a flaw in the hybrid ML-KEM 768 and X25519 key exchange implementation located in russh/src/kex/hybrid_mlkem.rs. The code accepts an all-zero 32-byte peer X25519 public key in both server_dh and compute_shared_secret. This forces the X25519 contribution to the combined shared secret to zero. A malicious SSH peer can therefore make the combined secret depend only on the ML-KEM component, defeating the hybrid exchange's intended fallback protection against future weaknesses in ML-KEM. The issue is tracked under [CWE-327: Use of a Broken or Risky Cryptographic Algorithm].

Critical Impact

A malicious SSH peer can collapse the hybrid post-quantum/classical key exchange down to ML-KEM alone, removing the classical Diffie-Hellman defense-in-depth layer.

Affected Products

  • Russh SSH library versions prior to 0.63.0
  • Rust applications embedding the vulnerable hybrid_mlkem key exchange
  • SSH clients and servers built on Russh negotiating the ML-KEM 768 + X25519 hybrid KEX

Discovery Timeline

  • 2026-09-29 - CVE-2026-102824 published to NVD
  • 2026-09-29 - Last updated in NVD database
  • Fix released - Russh version 0.63.0 published on GitHub with the sanitization patch

Technical Details for CVE-2026-102824

Vulnerability Analysis

Russh implements the sntrup761x25519-sha512 style hybrid key exchange combining ML-KEM 768 with X25519 elliptic curve Diffie-Hellman. The hybrid design exists so that if either algorithm is later broken, the combined shared secret remains protected by the other. The vulnerable implementation in hybrid_mlkem.rs failed to validate the peer's X25519 public key before performing scalar multiplication. When a peer supplies the all-zero 32-byte value as its public key, the X25519 shared secret is deterministically zero. The combined secret then reduces to a function of the ML-KEM output only, eliminating the classical defense-in-depth layer.

Root Cause

The root cause is missing validation of low-order and identity Curve25519 points before use in key exchange. Both server_dh and compute_shared_secret accepted the all-zero peer key without rejecting it. RFC 7748 recommends checking for the small set of low-order points that produce a zero output. Russh did not enforce this check in the hybrid path, allowing an attacker-controlled input to force a predictable X25519 contribution.

Attack Vector

Exploitation requires an attacker to act as an SSH peer during key exchange negotiation. The attacker sends an ephemeral X25519 public key composed entirely of zero bytes inside the hybrid KEM payload. The Russh implementation completes the handshake and derives session keys from a combined secret whose classical component is zero. The attack does not directly recover session traffic today because ML-KEM 768 remains cryptographically sound. However, it removes the safety margin the hybrid construction was designed to provide against future ML-KEM cryptanalysis.

rust
// Patch excerpt: russh/src/kex/hybrid_mlkem.rs
 use byteorder::{BigEndian, ByteOrder};
-use curve25519_dalek::constants::ED25519_BASEPOINT_TABLE;
 use curve25519_dalek::montgomery::MontgomeryPoint;
-use curve25519_dalek::scalar::Scalar;
 use log::debug;
 use ml_kem::Kem;
 use ml_kem::{
-    MlKem768,
     kem::{Decapsulate, DecapsulationKey, Encapsulate, EncapsulationKey},
-    KeyExport, TryKeyInit,
+    KeyExport, MlKem768, TryKeyInit,
 };
// Source: https://github.com/Eugeny/russh/commit/8da8967f196472576b1565d518a0ed60fce60f0c

The patch refactors the Curve25519 handling to sanitize parameters and reject invalid peer points before deriving the shared secret.

Detection Methods for CVE-2026-102824

Indicators of Compromise

  • SSH key exchange sessions where the peer transmits an X25519 public key consisting of 32 null bytes during hybrid ML-KEM negotiation
  • Anomalous SSH clients repeatedly negotiating mlkem768x25519-sha256 without valid random ephemeral keys
  • Presence of Russh library versions below 0.63.0 in dependency manifests (Cargo.lock, Cargo.toml)

Detection Strategies

  • Inspect SSH handshake traffic on the wire for hybrid KEX payloads containing all-zero Curve25519 components
  • Audit Rust project dependency trees for russh crate versions prior to 0.63.0
  • Enable verbose logging in Russh-based services to record peer key exchange parameters for post-hoc review

Monitoring Recommendations

  • Track SSH authentication and key exchange telemetry in a centralized log platform for anomalous KEX behavior
  • Alert on repeated handshake attempts from a single source using non-random ephemeral public keys
  • Monitor package registries and CI pipelines for dependency updates so vulnerable russh versions are flagged during builds

How to Mitigate CVE-2026-102824

Immediate Actions Required

  • Upgrade all applications embedding Russh to version 0.63.0 or later
  • Rebuild and redeploy Rust binaries linking the russh crate after updating Cargo.lock
  • Review SSH server and client configurations to confirm the patched hybrid KEX code path is in use

Patch Information

The fix is available in Russh 0.63.0. See the GitHub Release v0.63.0, the security advisory GHSA-w3jg-pjxf-73p4, and the remediation commit. The patch refactors hybrid_mlkem.rs and curve25519.rs to reject invalid peer public keys before deriving shared secrets.

Workarounds

  • Disable the hybrid ML-KEM 768 + X25519 key exchange method and negotiate a non-hybrid algorithm until the patched version is deployed
  • Restrict SSH endpoints exposed by Russh-based services to trusted peers using network access controls
  • Pin the russh crate to >= 0.63.0 in Cargo.toml to prevent regression to vulnerable versions
bash
# Update the russh dependency to the patched release
cargo update -p russh --precise 0.63.0

# Verify the resolved version in the lockfile
grep -A1 'name = "russh"' Cargo.lock

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.