Technical impact
A TLS client that has enabled Encrypted Client Hello (ECH) can be tricked into accepting a certificate that does not belong to the host the application intended to connect to. When a server returns a HelloRetryRequest that rejects ECH, the OpenSSL client switches to verifying the server’s certificate against the public name embedded in the ECH configuration, then continues. If the following ServerHello signals that ECH is now accepted, the client finalizes the handshake and reports success while the certificate has only been checked against the public name rather than the application‑supplied hostname. This flaw allows an attacker who can supply a forged ECH configuration to impersonate any target server and read or modify application traffic.
Affected Systems
OpenSSL 4.0 and later client libraries that are explicitly configured to use ECH. The issue applies only to TLS clients; servers that only send GREASE ECH or that do not enable ECH are not affected. The vulnerability affects applications that call SSL_set1_dnsname(), SSL_set1_host(), or X509_VERIFY_PARAM_set1_host() to set the hostname during a handshake.
Risk and Exploitability
The flaw carries a moderate severity rating. Exploitation requires the attacker to forge DNS responses that provide an ECH configuration for which the attacker holds the private key and a valid certificate for a domain it controls. If DNSSEC is not in use, the attacker can deliver such a configuration to the victim, causing the client to connect to the attacker’s server, receive a HelloRetryRequest rejecting ECH, and then a ServerHello accepting ECH, after which the client proceeds with the handshake. No EPSS score is currently available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, but the impact of server impersonation, including exposure of application data, remains significant.