---
id: "GHSA-w44r-93j7-qv28"
kind: "vulnerability"
aliases: ["GHSA-w44r-93j7-qv28"]
title: "rustls: An unauthenticated ServerHello poisons the per-name key-exchange record, so later ClientHellos carry only a classical X25519 share"
severity: "low"
cvss: 3.7
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "rustls", "fixed": ["0.23.46"], "affected": "< 0.23.46", "ecosystem": "cargo"}, {"name": "rustls", "fixed": ["0.24.0-dev.2"], "affected": ">= 0.24.0-dev.1, < 0.24.0-dev.2", "ecosystem": "cargo"}]
ecosystems: ["cargo"]
tags: ["cwe-757", "package", "post-quantum", "rust", "rustls", "tls-clients"]
not_affected_if: ["default-config", "server-sends-hello-retry-request"]
published_at: "2026-10-27T16:08:54+00:00"
first_seen_at: "2026-10-27T16:10:07+00:00"
updated_at: "2026-10-27T16:10:54+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-w44r-93j7-qv28", "first_seen_at": "2026-10-27T16:10:07+00:00"}]
---

# rustls: An unauthenticated ServerHello poisons the per-name key-exchange record, so later ClientHellos carry only a classical X25519 share

rustls remembers the key-exchange group a server picked before authenticating it, so a network attacker can make later ClientHellos for that server name offer only classical X25519. If the genuine server accepts that share instead of asking for a retry, the connection loses post-quantum protection, so recorded sessions could be decrypted later by a quantum adversary.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- cargo:rustls affected < 0.23.46 fixed 0.23.46
- cargo:rustls affected >= 0.24.0-dev.1, < 0.24.0-dev.2 fixed 0.24.0-dev.2

## How to check

- Check the rustls version in Cargo.lock with `cargo tree -i rustls` and compare against the fixed versions.
- Check whether your server sends a HelloRetryRequest for its preferred hybrid group; if it always does, the attack does not apply.

## Fix

- Upgrade rustls to `0.23.46` or later on the 0.23 line.
- Upgrade to `0.24.0-dev.2` or later if you track the 0.24 development line.

## Timeline

- 2026-10-27T16:10:07+00:00 ghsa https://github.com/advisories/GHSA-w44r-93j7-qv28

## From the sources

## Summary

The client records the server-selected key-exchange group per server name when it processes the ServerHello, before the server is authenticated. A network attacker can answer one connection attempt for a target name with a ServerHello that selects X25519 and close the connection. Later ClientHellos for that name carry one X25519 share while supported_groups still lists X25519MLKEM768 first. If the server accepts that share instead of sending a HelloRetryRequest, the handshake completes with classical key exchange only and no error.

An attacker that answers one connection attempt for the target name with a ServerHello selecting X25519 changes every later ClientHello of that client for that name, for as long as the entry stays in the store. No certificate or completed handshake is needed: it parses the ClientHello, sends the ServerHello, and closes.

TLS 1.3 transcript binding stops an on-path attacker from editing the ClientHello of one connection. It does not stop the attacker from steering the client's prediction state beforehand, because that state is written from an unauthenticated message.

## What does not trigger it

- Servers that send a HelloRetryRequest. The connection stays hybrid and costs one extra round trip.
- A client configuration with resumption disabled: nothing is stored.
- A different server name: the record is per name.

## Impact

If the genuine server picks the group for which a share is present, instead of sending a HelloRetryRequest for its preferred hybrid group, the handshake completes with classical key exchange only, between two peers that both support the hybrid group. No error is raised. The confidentiality of recorded sessions against a future quantum adversary is lost for those connections (harvest now, decrypt later). There is no key compromise and no authentication bypass.

Note that this behaviour is discussed at length in [draft-ietf-tls-key-share-prediction](https://www.ietf.org/archive/id/draft-ietf-tls-key-share-prediction-01.html#name-security-considerations) so the actual security impact is largely down to a server policy decision.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
