RUSTSEC-2026-0349: Unauthenticated ServerHello can downgrade later connections to classical key exchange

Open
#3,486 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend, security

Research direction

The report identifies rustls 0.23.41 and links the fix in rustls PR #3355. Start by reading that pull request and the key share prediction code it changes; trace how ServerHello group selection is stored and later used for ClientHellos. Done means unauthenticated ServerHello messages can no longer persist a downgraded key exchange choice, with regression coverage for the described sequence.

Written by the indexing model from the issue text.

Description

Details
Package rustls
Version 0.23.41
URL https://github.com/rustls/rustls/pull/3355
Patched Versions >=0.23.46
Aliases CVE-2026-123611, GHSA-w44r-93j7-qv28

The client recorded the server-selected key exchange group for each server
name when processing the ServerHello, before the server was authenticated.
This record is used to predict which key share to send in future ClientHellos
to that server name.

A network attacker can answer one connection attempt with a ServerHello
selecting X25519, and then close the connection. Later ClientHellos for that
name carry only an X25519 key share, while supported_groups still lists
X25519MLKEM768 first. If the genuine server accepts that share rather than
sending a HelloRetryRequest for its preferred hybrid group, the handshake
completes with classical-only key exchange and no error. This persists for as
long as the entry stays in the client's session store.

The impact is loss of post-quantum confidentiality for affected connections
("harvest now, decrypt later"). There is no key compromise and no
authentication bypass.

The following are not affected:

  • connections to servers which send a HelloRetryRequest for their preferred group,
  • clients with resumption disabled (as nothing is stored), and
  • other server names.

This behaviour is discussed in
draft-ietf-tls-key-share-prediction,
so the practical impact depends largely on server policy.

Dominant language
Go
Stars
362
Forks
295
Avg merge
9h 29m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from evstack/ev-node

All issues in evstack/ev-node

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.