OpenSSL fixes Encrypted Client Hello bug allowing impersonation
In short
- OpenSSL, the widely used open-source encryption library, published a fix on 1 December 2026 for a flaw in its Encrypted Client Hello (ECH) code, tracked as CVE-2026-120665 and rated moderate.
- ECH hides which website a TLS connection is for. The bug lets an attacker who can forge DNS answers make an affected client accept the attacker's certificate as proof of the server the app asked for.
- Only clients that an application has explicitly set up to use ECH are affected. ECH support arrived in OpenSSL 4.0, and the fixes are in 4.1.1 and 4.0.4. No FIPS modules are affected.
- The advisory describes the flaw and the fix. It does not report attacks in the wild.
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:
- The server's first message is a HelloRetryRequest (a TLS message asking the client to try again with different settings) that rejects ECH.
- The client switches certificate checking to the public name, as it should, but "does not treat the rejection as final".
- A following ServerHello that signals ECH acceptance then lets the client finish the handshake and report ECH success.
- By then the certificate is still being checked against the public name, not the name the application set with SSL_set1_dnsname(), SSL_set1_host() or X509_VERIFY_PARAM_set1_host().
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 could an attacker use the OpenSSL bug?
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.
Is my software affected by the OpenSSL bug?
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.
- CVE-2026-123780 is a memory-exhaustion bug. OpenSSL keeps a per-connection copy of the inner ClientHello for ECH, and a server appends every ClientHello carrying an inner ECH extension to it with no limit. The advisory says it applies even when the server does not use ECH, including default-configuration servers and TLS 1.2-only servers. Each ClientHello can add up to about 128 KB, and the attacker must send as much data as the server retains.
- CVE-2026-120667 is a heap buffer overflow when re-encoding cached ASN.1 items above INT_MAX. It needs an application parsing a crafted certificate, revocation list or request from a buffer larger than 4 GiB, and the advisory says it crashes the process. TLS and other common readers cap input below 4 GiB.
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
- Encrypted Client Hello (ECH): a TLS feature that encrypts the name of the site you are connecting to, so a network observer sees only the front server's public name. (Our wording.)
- HelloRetryRequest: a TLS 1.3 server message asking the client to restart its hello with different settings. (Our wording.)
- DNS HTTPS record: a DNS entry that can carry connection hints, including the ECH configuration.
- DNSSEC: signatures that let a client check DNS answers are genuine. Without it, the advisory says, these records are not authenticated.
- GREASE ECH: placeholder ECH data a client can send without really using ECH; the advisory says clients sending only this are not affected. (Our wording.)
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
- OpenSSL vulnerabilities, CVE-2026-120665, CVE-2026-120667 and CVE-2026-123780 entries, OpenSSL Library, 1 December 2026
Sources
Related stories
- Cloudflare brings full post-quantum switch forward to 2027
- RFC 10087 runs the domain-registry EPP protocol over QUIC
- OpenSSL 4.1 adds DTLS 1.3 and optimised post-quantum code
- OpenSSL fixes a DTLS bug that can leak heap memory to a peer
- RFC 10001 advises DNS operators to support both IPv4 and IPv6
- RFC 10029 lets one DNS query ask for several record types
More from Vulnerability Research
- Drupal installer flaw is exploited a day after its advisory
- Project Zero: a .NET AnyCPU file slips past VirtualBox checks
- Anthropic cuts its bug-disclosure deadline from 90 to 30 days
- Project Zero cuts bug disclosure deadline to 30 days by 2028
- eMudhra's eight CA keys were guessable; one was just the number 4