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

Source: https://junglewise.ai/threats/rustls-an-unauthenticated-serverhello-poisons-the-per-name-key-exchange-5b941b84  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-27  
License: CC BY 4.0 with a link back

Severity: low · CVSS 3.7 · Published 2026-10-27

## 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.

Technologies: [rustls (crates.io)](https://junglewise.ai/threats/technologies/rustls). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Low severity, with a CVSS score of 3.7, published 27 October 2026.

**Which products and versions are affected?** rustls (crates.io) < 0.23.46, SEMVER:introduced=0,fixed=0.23.46.

**Is there a fix for This vulnerability?** Yes. rustls (crates.io): upgrade to 0.23.46 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run rustls (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- rustls (crates.io): upgrade to 0.23.46 or later

  ```sh
  cargo update -p rustls
  ```


## Affected products

- rustls (crates.io) < 0.23.46, SEMVER:introduced=0,fixed=0.23.46

## Identifiers

- GHSA-w44r-93j7-qv28
- RUSTSEC-2026-0349

## Related threats

- [rustls: ECH rejection can expose buffered application data to authenticated outer server before `ech_required` alert](https://junglewise.ai/threats/rustls-ech-rejection-can-expose-buffered-application-data-to-bdce2178)
- [Rustls client session debug formatting information disclosure](https://junglewise.ai/threats/rustls-session-debug-formatting-exposes-tls-master-secrets-and-6519d2da)
- [Rustls: Brotli certificate decompression can allocate an attacker-controlled amount of memory up to 1 GiB before authentication.](https://junglewise.ai/threats/rustls-brotli-certificate-decompression-can-allocate-an-attacker-e90b700c)
- [RUSTSEC-2026-0346 - `Debug` impls for client session values expose TLS secrets](https://junglewise.ai/threats/rustsec-2026-0346-debug-impls-for-client-session-values-expose-tls-01a9a3b6)
- [RUSTSEC-2026-0349 - Unauthenticated ServerHello can downgrade later connections to classical key exchange](https://junglewise.ai/threats/rustsec-2026-0349-unauthenticated-serverhello-can-downgrade-later-4fb5a3af)
