rustls
Affected
- introduced
0.23.44, fixed0.23.46(semver)
Fixed versions
0.23.46
Fix
- Fixed version
0.23.46cargo update -p rustls --precise 0.23.46
Advisory
Also known as: CVE-2026-123612, GHSA-vp88-798v-h67f
Buffered application data sent to outer server after ECH rejection
When a server rejects Encrypted Client Hello (ECH), the client completes the
handshake using the outer ClientHello and authenticates the server against the
ECH config's public_name. At the end of that handshake, rustls encrypted and
queued any application data buffered via ClientConnection::writer() *before*
queueing the ech_required alert.
The application correctly receivesError::PeerIncompatible(ServerRejectedEncryptedClientHello), but the nextwrite_tls() call (needed to send the alert) also sends the buffered
application data. Plaintext meant for the inner server therefore goes to the
client-facing server named by public_name.
That server is authenticated, so this is not exploitable by an unauthenticated
party, but it violates RFC 9849 section 6.1.6, which requires the client to
abort with ech_required "before sending any application data to the server".
This affects only clients that:
EchMode::Enable (GREASE ECH is not affected),The underlying ordering bug is older, but before 0.23.44 the client checked
the server certificate against the inner server name rather than public_name,
so certificate verification failed first and no data was sent.
Low Basis: CVSS v3 score 2.3, vector CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
0.23.44, fixed 0.23.46 (semver)0.23.46
0.23.46cargo update -p rustls --precise 0.23.46Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0