{"id":"CVE-2026-120665","aliases":["CVE-2026-120665"],"related":[],"kind":"vulnerability","state":"published","title":"ECH Server Name Verification Bypass after HelloRetryRequest","summary":"Issue summary: A TLS client using Encrypted Client Hello (ECH) can be made to\naccept a certificate for a domain chosen by an attacker as valid for the\nserver name the application requested.\n\nImpact summary: An attacker who can forge DNS responses to a client can\nimpersonate any server the client connects to using ECH. The client then sends\nits application data to the attacker and accepts the attacker's responses as\ncoming from the requested server.\n\nCWE: CWE-295: Improper Certificate Validation\n\nDescription: When ECH is rejected, a client verifies the server's certificate\nagainst the public name in the ECH configuration, so that it can obtain a\ncorrected configuration, and then aborts the handshake. The server's first\nmessage decides whether ECH was accepted. If that message is a\nHelloRetryRequest which rejects ECH, the OpenSSL client switches certificate\nverification to the public name but does not treat the rejection as final. A\nfollowing ServerHello which signals ECH acceptance then causes the client to\ncomplete the handshake and report ECH success, while the certificate is still\nchecked against the public name instead of the name the application set with\nSSL_set1_dnsname(), SSL_set1_host() or X509_VERIFY_PARAM_set1_host().\n\nECH configurations are normally obtained from DNS HTTPS records, which are not\nauthenticated unless DNSSEC is used. An attacker who can forge those records\ncan give the client an ECH configuration for which it holds the private key,\nwith a public name for a domain it controls and holds a valid certificate\nfor. The same forged DNS responses can direct the client to connect to the\nattacker's own server. That server can then send a HelloRetryRequest that\nrejects ECH followed by a ServerHello that accepts it, and the client will\naccept its certificate as authenticating the requested server. The same\napplies to a client-facing server in a split-mode ECH deployment, which holds\nthe ECH private key and a certificate for the public name but must not be able\nto impersonate the backend servers.\n\nOnly TLS clients that are configured to use ECH are affected. Clients that\nsend only GREASE ECH and servers are not affected. ECH support was added in\nOpenSSL 4.0, it must be explicitly configured by the application, and the\nattacker must be able to forge DNS responses to the client or otherwise supply\nit with an ECH configuration. For these reasons this issue was assessed as\nModerate severity.\n\nFIPS impact: no\nNo FIPS modules are affected by this issue as the affected code is outside\nthe OpenSSL FIPS module boundary.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Issue summary: A TLS client using Encrypted Client Hello (ECH) can be made to\naccept a certificate for a domain chosen by an attacker as valid for the\nserver name the application requested.\n\nImpact summary: An attacker who can forge DNS responses to a client can\nimpersonate any server the client connects to using ECH. The client then sends\nits application data to the attacker and accepts the attacker's responses as\ncoming from the requested server.\n\nCWE: CWE-295: Improper Certificate Validation\n\nDescription: When ECH is rejected, a client verifies the server's certificate\nagainst the public name in the ECH configuration, so that it can obtain a\ncorrected configuration, and then aborts the handshake. The server's first\nmessage decides whether ECH was accepted. If that message is a\nHelloRetryRequest which rejects ECH, the OpenSSL client switches certificate\nverification to the public name but does not treat the rejection as final. A\nfollowing ServerHello which signals ECH acceptance then causes the client to\ncomplete the handshake and report ECH success, while the certificate is still\nchecked against the public name instead of the name the application set with\nSSL_set1_dnsname(), SSL_set1_host() or X509_VERIFY_PARAM_set1_host().\n\nECH configurations are normally obtained from DNS HTTPS records, which are not\nauthenticated unless DNSSEC is used. An attacker who can forge those records\ncan give the client an ECH configuration for which it holds the private key,\nwith a public name for a domain it controls and holds a valid certificate\nfor. The same forged DNS responses can direct the client to connect to the\nattacker's own server. That server can then send a HelloRetryRequest that\nrejects ECH followed by a ServerHello that accepts it, and the client will\naccept its certificate as authenticating the requested server. The same\napplies to a client-facing server in a split-mode ECH deployment, which holds\nthe ECH private key and a certificate for the public name but must not be able\nto impersonate the backend servers.\n\nOnly TLS clients that are configured to use ECH are affected. Clients that\nsend only GREASE ECH and servers are not affected. ECH support was added in\nOpenSSL 4.0, it must be explicitly configured by the application, and the\nattacker must be able to forge DNS responses to the client or otherwise supply\nit with an ECH configuration. For these reasons this issue was assessed as\nModerate severity.\n\nFIPS impact: no\nNo FIPS modules are affected by this issue as the affected code is outside\nthe OpenSSL FIPS module boundary.","source":"cvelist"}],"published":"2026-12-01T16:35:02.880Z","modified":"2026-12-01T17:17:20.197Z","severities":[],"cwes":["CWE-295"],"affected":[{"ranges":[{"type":"semver","introduced":"4.1.0","fixed":"4.1.1","status":"affected"},{"type":"semver","introduced":"4.0.0","fixed":"4.0.4","status":"affected"}],"vendor":"OpenSSL","product":"OpenSSL","source":"cvelist"}],"references":[{"url":"https://openssl-library.org/news/secadv/20261201.txt","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openssl/openssl/commit/d04683cbb0b31c64674921d5eaee83bccd515144","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openssl/openssl/commit/335f8ecac66d8fdb4104f94a41fb81c582cf2de2","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Anthropic's OSS Scanner","Laurent Gaffie (secorizon.com)","Igor Morgenstern (Aisle Research)","Khaled Suliman (Aisle Research)","Sabith Saheb"],"assigner":"openssl","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120665","url":"https://www.cve.org/CVERecord?id=CVE-2026-120665","licence":"CVE Terms of Use","modified":"2026-12-01T16:35:02.880Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-120665","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120665","licence":"Public domain","modified":"2026-12-01T17:17:20.197Z"}],"updatedAt":"2026-12-01T17:32:44.929Z"}