cve.bz

CVE-2026-120665 ECH Server Name Verification Bypass after HelloRetryRequest

no score yetFix available

openssl openssl: no CVSS score yet.

On this page
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.
CWE
CWE-295 Improper Certificate Validation
OWASP Top 10
A07:2025 Authentication Failures
Published
Assigned by
openssl (CNA)
NVD analysis
Not in the NVD yet
Record from
the CVE List, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-120665 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-120665?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-120665?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-120665 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSSLfrom 4.1.0 before 4.1.1
OpenSSLfrom 4.0.0 before 4.0.4

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON