CVE-2026-120665

ECH Server Name Verification Bypass after HelloRetryRequest

No CVSS score yet

Published 1 Dec 2026 Updated 1 Dec 2026 CNA: openssl

Check your servers for CVE-2026-120665

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-120665 affects openssl, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Weakness

  • CWE-295 Improper Certificate Validation

Affected products

As the CNA lists them.

ProductVersions
OpenSSL
affected from 4.1.0, before 4.1.1
affected from 4.0.0, before 4.0.4
Other versions: unaffected

Is my server affected?

Find the installed version of openssl and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i openssl
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-120665 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-120665

RHEL, Rocky, Alma, Fedora

rpm -q openssl
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-120665

Alpine

apk list --installed | grep -i openssl

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-120665
trivy image --scanners vuln IMAGE | grep CVE-2026-120665

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Patches and release notes

Source: the record CVE-2026-120665 of the CVE List (CVE Program), CVE Terms of Use; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.