Skip to content
CVE IDCVE-2026-102824GitHub advisory IDGHSA-w3jg-pjxf-73p4

Russh: Missing X25519 zero-point validation in hybrid ML-KEM key exchange

CVE-2026-102824 (GitHub advisory GHSA-w3jg-pjxf-73p4) is a medium-severity vulnerability with a CVSS 3.1 base score of 4.3, classed as Use of a Broken or Risky Cryptographic Algorithm (CWE-327), in russh (crates.io). Affected versions: < 0.63.0. It is fixed in 0.63.0.

Medium4.3Fix availableGitHub reviewed

Published 29 Sept 2026Updated 30 Sept 2026

4.3MediumCVSS 3.1
EPSS
0.14%higher than 2% of CVEs
Weakness (CWE)
  • CWE-327Use of a Broken or Risky Cryptographic Algorithm
KEV status
Not in KEV
Published
29 Sept 2026
Updated
30 Sept 2026
Ecosystem
  • crates.io (Rust)
Assigned by (CNA)
GitHub_M

Summary

Source: OSV (GitHub advisory)

Vulnerability

The hybrid ML-KEM 768 + X25519 key exchange implementation in russh/src/kex/hybrid_mlkem.rs does not validate that the remote peer's X25519 public key is not the zero point (all-zero 32-byte value). This allows a remote peer to force the X25519 contribution to the combined shared secret to zero, reducing the hybrid KEX to a single-algorithm exchange.

Affected code at HEAD (v0.62.4, commit 0089c89):

Server-side (server_dh, lines 92-93):

let mut c_pk1 = MontgomeryPoint([0; 32]);
c_pk1.0.copy_from_slice(c_pk1_bytes);
// No zero-point check - proceeds to: let k_cl = s_secret * c_pk1;

Client-side (compute_shared_secret, lines 154-155):

let mut s_pk1 = MontgomeryPoint([0; 32]);
s_pk1.0.copy_from_slice(s_pk1_bytes);
// No zero-point check - proceeds to: let k_cl = x25519_secret * s_pk1;

Root Cause

Commit a7fc1eb (2026-07-22, "fix mpint encoding and validate curve25519 keys") added zero-point validation to the standalone Curve25519 KEX in russh/src/kex/curve25519.rs at two locations:

  • server_dh line 77: if client_pubkey.0 == [0u8; 32] { return Err(crate::Error::Kex); }
  • compute_shared_secret line 122: if remote_pubkey.0 == [0u8; 32] { return Err(crate::Error::Kex); }

The same X25519 scalar multiplication pattern appears in hybrid_mlkem.rs, but the fix was not applied there.

Proof of Concept

A malicious SSH client negotiating mlkem768x25519-sha256 can send a KEX_HYBRID_INIT message containing a valid ML-KEM 768 encapsulation key followed by 32 zero bytes as the X25519 component.

When the server computes k_cl = s_secret * c_pk1, the result is the zero point regardless of the server's secret scalar. The combined shared secret K = SHA-256(k_pq || k_cl) then depends only on the ML-KEM component. The same attack works in reverse against a client connecting to a malicious server.

The zero X25519 public key passes all existing validation (the length check on line 78 succeeds since 32 bytes is correct). No panic or crash occurs - the exchange completes successfully with a weakened shared secret.

Impact

The purpose of hybrid key exchange is defense-in-depth: if either the classical algorithm (X25519) or the post-quantum algorithm (ML-KEM 768) is broken, the combined secret remains secure. By injecting a zero X25519 public key, an attacker eliminates the classical contribution entirely, reducing security to depend solely on ML-KEM.

This matters in two scenarios:

  1. If ML-KEM 768 is later found to have a weakness (the explicit threat model hybrid KEX is designed to mitigate), sessions where the X25519 component was zeroed out lose their fallback protection.
  2. An active network attacker who can intercept KEX could downgrade the hybrid exchange to effectively single-algorithm security without either peer detecting it.

The severity is MEDIUM rather than HIGH because the ML-KEM component still provides strong security today, and an active attacker who can modify KEX messages can already perform other attacks unless strict KEX is negotiated.

Suggested Fix

Add zero-point checks in hybrid_mlkem.rs matching the ones in curve25519.rs:

// In server_dh, after line 93:
let mut c_pk1 = MontgomeryPoint([0; 32]);
c_pk1.0.copy_from_slice(c_pk1_bytes);
if c_pk1.0 == [0u8; 32] {
    return Err(Error::Kex);
}

// In compute_shared_secret, after line 155:
let mut s_pk1 = MontgomeryPoint([0; 32]);
s_pk1.0.copy_from_slice(s_pk1_bytes);
if s_pk1.0 == [0u8; 32] {
    return Err(Error::Kex);
}

Ideally, also validate against the other small-subgroup points on Curve25519 (there are a small number of low-order points that also yield a zero shared secret), matching the comprehensive validation OpenSSH performs.

AI tooling

AI assistancewas used for the code audit and for drafting this report. The finding was manually verified against the project's source at the location cited above before reporting it, and the severity and impact assessment are my own.

Technical details

Source: GitHub Advisory Database

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

Medium4.3Base score from GitHub Advisory Database

Attack Vector AV
Network
Attack Complexity AC
Low
Privileges Required PR
Low
User Interaction UI
None
Scope S
Unchanged
Confidentiality C
Low
Integrity I
None
Availability A
None

CISA SSVC decision points

Exploitation
none
No public exploitation evidence
Automatable
no
Needs manual steps per target
Technical impact
partial
Limited control of the affected system

CISA Coordinator assessment (SSVC 2.0.3) via CVE.org.

Affected packages

Source: OSV (GitHub advisory)

  • russh
    crates.io (Rust)
    pkg:cargo/russh
    Affected versions
    < 0.63.0
    Fixed in
    0.63.0

Fix

Source: OSV (GitHub advisory)

Fix available

Upgrade to 0.63.0 or later.

Patch commits

  • 8da8967Patch commitgithub.com/Eugeny/russh

    sanitize Curve25519 params

    +81 −29 across 2 files

    • russh/src/kex/curve25519.rs+63 −16
    • russh/src/kex/hybrid_mlkem.rs+18 −13

Release commits

The commits each fixed release tag points at. They usually bump the version rather than contain the fix itself.

  • dbe2234Release commit0.63.0github.com/eugeny/russh

Vulnerability intelligence

References

Credits

Questions about CVE-2026-102824

What is the GHSA ID for CVE-2026-102824?
GitHub tracks CVE-2026-102824 as GHSA-w3jg-pjxf-73p4.
What is the CVSS score of CVE-2026-102824?
CVE-2026-102824 has a CVSS 3.1 base score of 4.3 (Medium), vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
Which versions are affected by CVE-2026-102824?
russh (crates.io): < 0.63.0.
How do I fix CVE-2026-102824?
Upgrade to 0.63.0 or later. The fix is in commit 8da8967.
What is the Package URL (PURL) for CVE-2026-102824?
The affected package's PURL is pkg:cargo/russh.
Is CVE-2026-102824 exploited in the wild?
CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2026-102824. That means no confirmed exploitation has been catalogued, not that it is safe to leave unpatched. CISA's SSVC assessment rates exploitation as "none". EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 2% of CVEs.

Data sources

Upstream records

  • OSV (GitHub advisory)LoadedRaw JSON
  • GitHub Advisory DatabaseLoadedRaw JSON
  • OSV (CVE record)LoadedRaw JSON
  • CVE.orgLoaded
  • CISA KEV catalogLoaded

Fetched 2 days ago (13 Oct 2026, 12:59 UTC). Records refresh automatically after 24 hours.

Where each part of this page came from

Title and description
OSV (GitHub advisory)
Severity score
GitHub Advisory Database
Weakness (CWE)
GitHub Advisory Database
Affected packages
OSV (GitHub advisory)
Fix
OSV (GitHub advisory)
References
Computed by CVEminer
SSVC
CVE.org
KEV status
CISA KEV catalog
EPSS
GitHub Advisory Database

OSV and GitHub Advisory Database content is licensed CC BY 4.0. Values marked as computed or derived were calculated by CVEminer from the upstream data.