[go] crypto/tls: omit PSK in ECH outer client hello

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Jun 26, 2026, 12:07:06 PM (yesterday) Jun 26
to Roland Shoemaker, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Carlos Amedee, Daniel McCarney, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
crypto/tls: omit PSK in ECH outer client hello

When using ECH, do not include the PSK extension in the outer hello.
Including the PSK extension allows for a degradation in privacy, as an
on-path attacker can harvest outer client hellos, and then construct new
hellos using the PSK extension and arbitrary guessed SNI values,
replaying them to the target server. If the server rejects the PSK, the
handshake will continue, but if the PSK is accepted, the binder check
will fail.

Thanks to Coia Prant (github.com/rbqvq) for
reporting this issue.

Fixes CVE-2026-42505
Fixes #79282
Change-Id: Ib3a3c948106a57c1b07b9e61a58cbf757848be18
Auto-Submit: Roland Shoemaker <rol...@golang.org>
TryBot-Bypass: Roland Shoemaker <rol...@golang.org>
Reviewed-by: Daniel McCarney <dan...@binaryparadox.net>
Reviewed-by: Carlos Amedee <car...@golang.org>
Files:
  • M src/crypto/tls/handshake_messages.go
  • M src/crypto/tls/handshake_messages_test.go
  • M src/crypto/tls/tls_test.go
Change size: M
Delta: 3 files changed, 99 insertions(+), 5 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a3c948106a57c1b07b9e61a58cbf757848be18
Gerrit-Change-Number: 775960
Gerrit-PatchSet: 3
Gerrit-Owner: Roland Shoemaker <rol...@golang.org>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: Daniel McCarney <dan...@binaryparadox.net>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Roland Shoemaker <rol...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages