OpenSSL fixes Encrypted Client Hello bug that allows server impersonation

In short

Moderate OpenSSL's severity rating; 4.1.1 and 4.0.4 the fixed releases; 4.0 the first version with ECH support; 0 FIPS modules affected

What went wrong

When a browser or app connects over TLS, the first message it sends, the ClientHello, normally names the site it wants in plain text. Encrypted Client Hello encrypts that name. The client gets the server's ECH settings, called an ECH configuration, which include a "public name": the name of a front server that can be shown openly. According to the advisory, those configurations are normally obtained from DNS HTTPS records.

If the server cannot decrypt the hello, ECH is rejected. The advisory says that in that case the client checks the server's certificate against the public name, so it can fetch a corrected configuration, and then aborts the handshake. The server's first reply decides whether ECH was accepted.

The bug is in one path of that logic. OpenSSL's description:

In plain terms (our reading): the client checks the ID of the wrong person, then carries on as if it had checked the right one.

How an attacker would use it

The advisory says DNS HTTPS records are not authenticated unless DNSSEC (digital signatures on DNS answers) is used. An attacker who can forge them can hand the client an ECH configuration for which the attacker holds the private key, with a public name for a domain the attacker controls and has a valid certificate for. The same forged answers can point the client to the attacker's own server.

That server then sends the rejecting HelloRetryRequest followed by an accepting ServerHello. The client takes the attacker's certificate as authenticating the server it requested. In the advisory's words, the client then sends its application data to the attacker and accepts the attacker's replies as coming from the requested server.

The advisory adds a second case. A client-facing server in a split-mode ECH deployment holds the ECH private key and a certificate for the public name, but must not be able to impersonate the backend servers behind it. This bug would let it.

The attacker needs to forge DNS responses to the client or otherwise supply it with an ECH configuration. OpenSSL gives this, together with the need for explicit ECH configuration and ECH having arrived only in 4.0, as the reasons for the moderate rating.

Who is affected

The advisory says ECH must be explicitly configured by the application, so many programs that link OpenSSL will not be exposed.

Two other moderate fixes on the same day

OpenSSL published two more moderate advisories on 1 December 2026, both fixed in 4.1.1 and 4.0.4.

Credits

The advisory credits Anthropic's OSS Scanner, Laurent Gaffie (secorizon.com), Igor Morgenstern and Khaled Suliman (Aisle Research) and Sabith Saheb with finding CVE-2026-120665. Sabith Saheb developed the fix. Anthropic's OSS Scanner and Areg Gasparyan are credited for CVE-2026-123780.

Terms in plain English

Where things stand

Users of OpenSSL 4.1 and 4.0 who use ECH in clients should move to 4.1.1 or 4.0.4. The fixes are linked as git commits from the advisory entry.

Sources

Sources

More from Lock & Key

All stories from Lock & Key