RUSTSEC-2026-0347: Buffered application data sent to outer server after ECH rejection
A pull request for this has already been merged.
- #586 by @SergioGasquez — merged
Assessment
- Difficulty
- 2/5
- Estimated time
- Under an hour
- Newbie friendliness
- 15/100
Research direction
This is a security advisory about the rustls dependency, not a change to espup's own code. The payload names the affected version (0.23.45) and the patched version (>=0.23.46) but no espup file. Check where rustls is pinned in the project's Cargo manifest and lockfile. Pull request #586 is already open against this issue, so review or test that change rather than starting a new one. Done when the resolved rustls is at least 0.23.46 and the build and tests pass.
Written by the indexing model from the issue text.
Description
Buffered application data sent to outer server after ECH rejection
| Details | |
|---|---|
| Package | rustls |
| Version | 0.23.45 |
| URL | https://github.com/rustls/rustls/pull/3300 |
| Date | 2026-10-14 |
| Patched versions | >=0.23.46 |
| Unaffected versions | <0.23.44 |
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 receives
Error::PeerIncompatible(ServerRejectedEncryptedClientHello), but the next
write_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:
- use
EchMode::Enable(GREASE ECH is not affected), - write application data before the handshake completes, and
- connect to a server that rejects their ECH config (for example, because it is stale).
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.
See advisory page for additional details.
- Dominant language
- Rust
- Stars
- 461
- Forks
- 37
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 6
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from esp-rs/espup
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
enhancement feature request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Install To Platform-Standard Locations | Reduce Home Directory ClutterMay be free again A pull request for this issue was closed without being merged. Openenhancement feature request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
enhancement feature request
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
enhancement feature request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
Negative subscript on a sparse array counts from the number of elements, not from the highest indexOpenarea: compat bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
reubeno/brush#1570 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
longbridge/gpui-kit#3620 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
mongodb/kingfisher#564 ·
Maintainers usually reply within 1 day