freenode
Security & Cryptography

OpenSSL fixes ECH certificate check that trusted the wrong name

A moderate flaw let a client using Encrypted Client Hello accept an attacker-chosen certificate after a handshake retry; new releases also close other moderate and low issues.

OpenSSL has released 4.1.1, 4.0.4, and 3.5.10 to fix a moderate flaw that can let a TLS client using Encrypted Client Hello (ECH) treat an attacker's certificate as valid for the server the application actually asked for.

The issue, CVE-2026-120665, is an improper certificate check. When a server rejects ECH, the client is supposed to verify the certificate against the public name in the ECH configuration, fetch a corrected configuration, and abort. If that rejection arrives as a HelloRetryRequest, OpenSSL switched verification to the public name but did not treat the rejection as final. A later message that claimed ECH had succeeded could complete the handshake and report success while the certificate was still checked against the public name, not the name the application set.

ECH configurations normally come from DNS HTTPS records, which are unauthenticated unless DNSSEC is in use. An attacker who can forge those responses can supply an ECH configuration whose private key they hold, with a public name they control and a valid certificate for, and point the client at their own server. The client then sends application data to the attacker and accepts the replies as coming from the requested server. OpenSSL rates the flaw moderate.

Norbert Pócs announced the releases on the oss-security list. The same versions also fix two further moderate issues and one new low-severity issue, covering ASN.1 encoding and AES-SIV, plus 12 low-severity issues that had already been posted. Operators of OpenSSL clients that use ECH should move to the patched releases; clients that do not use ECH are not exposed to this bypass.