Email me

Rust advisories / rustls

Vulnerability LowRUSTSEC-2026-0349 · rustls

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

Short answerA security vulnerability in the rustls crate: Unauthenticated ServerHello can downgrade later connections to classical key exchange. Low severity (CVSS 3.7). Fixed in 0.23.46: update to a fixed version.

Craterustls
TypeVulnerability (crypto-failure)
Affected versionsBefore 0.23.46.
Fixed in0.23.46
SeverityLow, CVSS 3.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Published2026-10-14
Last changed2026-10-14
Also known asGHSA-w44r-93j7-qv28

What to do

  1. See which version you have: cargo tree -i rustls (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p rustls. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example rustls = "0.23.46") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for rustls

Full security history of rustls

Up next

Same craterustls: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ