CVE-2026-120665

ECH Server Name Verification Bypass after HelloRetryRequest

Published Dec 1, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
Issue summary: A TLS client using Encrypted Client Hello (ECH) can be made to
accept a certificate for a domain chosen by an attacker as valid for the
server name the application requested.

Impact summary: An attacker who can forge DNS responses to a client can
impersonate any server the client connects to using ECH. The client then sends
its application data to the attacker and accepts the attacker's responses as
coming from the requested server.

CWE: CWE-295: Improper Certificate Validation

Description: When ECH is rejected, a client verifies the server's certificate
against the public name in the ECH configuration, so that it can obtain a
corrected configuration, and then aborts the handshake. The server's first
message decides whether ECH was accepted. If that message is a
HelloRetryRequest which rejects ECH, the OpenSSL client switches certificate
verification to the public name but does not treat the rejection as final. A
following ServerHello which signals ECH acceptance then causes the client to
complete the handshake and report ECH success, while the certificate is still
checked against the public name instead of the name the application set with
SSL_set1_dnsname(), SSL_set1_host() or X509_VERIFY_PARAM_set1_host().

ECH configurations are normally obtained from DNS HTTPS records, which are not
authenticated unless DNSSEC is used. An attacker who can forge those records
can give the client an ECH configuration for which it holds the private key,
with a public name for a domain it controls and holds a valid certificate
for. The same forged DNS responses can direct the client to connect to the
attacker's own server. That server can then send a HelloRetryRequest that
rejects ECH followed by a ServerHello that accepts it, and the client will
accept its certificate as authenticating the requested server. The same
applies to a client-facing server in a split-mode ECH deployment, which holds
the ECH private key and a certificate for the public name but must not be able
to impersonate the backend servers.

Only TLS clients that are configured to use ECH are affected. Clients that
send only GREASE ECH and servers are not affected. ECH support was added in
OpenSSL 4.0, it must be explicitly configured by the application, and the
attacker must be able to forge DNS responses to the client or otherwise supply
it with an ECH configuration. For these reasons this issue was assessed as
Moderate severity.

FIPS impact: no
No FIPS modules are affected by this issue as the affected code is outside
the OpenSSL FIPS module boundary.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenSSL to a version that contains the ECH certificate validation fix.
  • If upgrading is not possible, disable ECH in the application configuration and remove any explicit ECH settings such as SSL_set1_host() or X509_VERIFY_PARAM_set1_host().
  • Ensure that DNS responses for ECH configurations are authenticated by enabling DNSSEC or otherwise protecting the client from forged DNS records.

Generated by OpenCVE AI on December 1, 2026 at 23:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Issue summary: A TLS client using Encrypted Client Hello (ECH) can be made to accept a certificate for a domain chosen by an attacker as valid for the server name the application requested. Impact summary: An attacker who can forge DNS responses to a client can impersonate any server the client connects to using ECH. The client then sends its application data to the attacker and accepts the attacker's responses as coming from the requested server. CWE: CWE-295: Improper Certificate Validation Description: When ECH is rejected, a client verifies the server's certificate against the public name in the ECH configuration, so that it can obtain a corrected configuration, and then aborts the handshake. The server's first message decides whether ECH was accepted. If that message is a HelloRetryRequest which rejects ECH, the OpenSSL client switches certificate verification to the public name but does not treat the rejection as final. A following ServerHello which signals ECH acceptance then causes the client to complete the handshake and report ECH success, while the certificate is still checked against the public name instead of the name the application set with SSL_set1_dnsname(), SSL_set1_host() or X509_VERIFY_PARAM_set1_host(). ECH configurations are normally obtained from DNS HTTPS records, which are not authenticated unless DNSSEC is used. An attacker who can forge those records can give the client an ECH configuration for which it holds the private key, with a public name for a domain it controls and holds a valid certificate for. The same forged DNS responses can direct the client to connect to the attacker's own server. That server can then send a HelloRetryRequest that rejects ECH followed by a ServerHello that accepts it, and the client will accept its certificate as authenticating the requested server. The same applies to a client-facing server in a split-mode ECH deployment, which holds the ECH private key and a certificate for the public name but must not be able to impersonate the backend servers. Only TLS clients that are configured to use ECH are affected. Clients that send only GREASE ECH and servers are not affected. ECH support was added in OpenSSL 4.0, it must be explicitly configured by the application, and the attacker must be able to forge DNS responses to the client or otherwise supply it with an ECH configuration. For these reasons this issue was assessed as Moderate severity. FIPS impact: no No FIPS modules are affected by this issue as the affected code is outside the OpenSSL FIPS module boundary.
Title ECH Server Name Verification Bypass after HelloRetryRequest
Weaknesses CWE-295
References

Subscriptions

No data.

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
openssl
Published
Updated
Dec 1, 2026, 4:35 PM
Reserved
Nov 2, 2026, 6:47 PM
Status
Received
Published
Dec 1, 2026, 5:17 PM
Modified
Dec 1, 2026, 5:17 PM