Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-120665

CVE-2026-120665: 
OpenSSL vulnerability analysis and mitigation

Overview

CVE-2026-120665 is an improper certificate validation vulnerability in OpenSSL's Encrypted Client Hello (ECH) implementation that allows a network attacker who can forge DNS responses to impersonate any TLS server a client connects to. The flaw affects OpenSSL versions 4.0.0–4.0.3 and 4.1.0, and was disclosed on December 1, 2026. It is classified as CWE-295 (Improper Certificate Validation) and assessed as Moderate severity by OpenSSL (GitHub Advisory, OpenSSL Advisory). Only TLS clients explicitly configured to use ECH are affected; servers and GREASE-only ECH clients are not (GitHub Advisory).

Technical details

The root cause (CWE-295) lies in tls_process_server_hello() within ssl/statem/statem_clnt.c, where the ECH accept/reject check for a subsequent ServerHello does not account for the outcome of a preceding HelloRetryRequest (HRR). When the HRR rejects ECH, the client correctly switches certificate verification to the ECH public name, but does not mark the rejection as final. If a following ServerHello signals ECH acceptance, the client calls ossl_ech_swaperoo() and reports ECH success while still verifying the server certificate against the public name rather than the application-specified name set via SSL_set1_dnsname(), SSL_set1_host(), or X509_VERIFY_PARAM_set1_host() (OpenSSL Commit 335f8ec). An attacker exploiting this must be able to forge DNS HTTPS records (which are unauthenticated without DNSSEC) to supply a malicious ECH configuration, then operate a rogue server that sends a HRR rejecting ECH followed by a ServerHello accepting it, presenting a certificate for an attacker-controlled domain (GitHub Advisory). ECH support was introduced in OpenSSL 4.0 and must be explicitly enabled by the application, limiting the attack surface.

Impact

A successful attack allows a network adversary to perform full server impersonation against any TLS server the victim client connects to using ECH. The client sends its application data — which may include credentials, session tokens, or sensitive payloads — to the attacker's server, and accepts the attacker's responses as authentic, enabling man-in-the-middle interception and manipulation of all application-layer traffic. Confidentiality and integrity of the TLS session are both fully compromised; availability is not directly impacted. The attack also applies to client-facing servers in split-mode ECH deployments, which hold the ECH private key and a certificate for the public name but must not be able to impersonate backend servers (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the disclosure date (GitHub Advisory). Exploitation requires a network-positioned attacker capable of forging DNS responses (e.g., via DNS cache poisoning or a rogue DNS resolver), and the victim must be using an OpenSSL 4.0.x or 4.1.0 client with ECH explicitly configured. No CISA KEV listing or threat actor attribution has been reported. The EPSS score is not yet published. OpenSSL assessed the severity as Moderate given the prerequisite of DNS forgery capability and the requirement for ECH to be explicitly enabled (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify target applications using OpenSSL 4.0.0–4.0.3 or 4.1.0 with ECH explicitly configured (e.g., via SSL_set1_ech_config_list()), which fetch ECH configurations from DNS HTTPS records.
  2. DNS Forgery: Position to forge or poison DNS HTTPS record responses to the client, supplying a malicious ECH configuration (ECHConfig) for which the attacker holds the private key, with a public name pointing to an attacker-controlled domain for which a valid certificate exists.
  3. Traffic Redirection: Use the same forged DNS responses to direct the client's TCP connection to the attacker's rogue TLS server.
  4. Trigger HRR + ECH Rejection: The rogue server sends a HelloRetryRequest (e.g., citing a key_share group mismatch) that rejects ECH, causing the OpenSSL client to switch certificate verification to the ECH public name.
  5. Send Accepting ServerHello: The rogue server then sends a ServerHello that signals ECH acceptance. Due to the bug, the client does not detect the inconsistency and completes the handshake, reporting ECH success while still validating the certificate against the attacker-controlled public name.
  6. Intercept Application Data: The client, believing it has a secure connection to the intended server, transmits application data to the attacker, who can read and manipulate it (OpenSSL Commit 335f8ec, GitHub Advisory).

Indicators of compromise

  • Network: Unexpected DNS HTTPS record responses for target domains pointing to unfamiliar IP addresses or ECH configurations not matching known deployments; TLS connections to unexpected server IPs following DNS resolution.
  • Network: TLS handshakes involving a HelloRetryRequest immediately followed by a ServerHello that signals ECH acceptance — an unusual sequence that may appear in packet captures (e.g., via Wireshark with TLS dissection).
  • Logs: OpenSSL TLS trace logs (OSSL_TRACE category TLS) showing ECH falling back to public_name followed by ECH success in the same session, which should not occur in a legitimate handshake.
  • Application: SSL_ech_get1_status() reporting SSL_ECH_STATUS_SUCCESS while the inner SNI and outer (public) name differ unexpectedly from application-configured values.

Mitigation and workarounds

Upgrade OpenSSL to version 4.1.1 (for the 4.1.x branch) or 4.0.4 (for the 4.0.x branch), which contain the fix in commits 335f8ec and d04683c respectively (OpenSSL Advisory, GitHub Advisory). As a workaround prior to patching, deploy DNSSEC to authenticate DNS HTTPS records used to distribute ECH configurations, preventing DNS forgery. Additionally, restrict or disable ECH in applications where DNS responses cannot be trusted, and monitor DNS HTTPS record responses for unexpected changes.

Community reactions

Coverage appeared shortly after the December 1, 2026 disclosure across Linux-focused outlets and security aggregators, including Linuxiac reporting on the OpenSSL 4.1.1 release fixing sixteen vulnerabilities, and Linux Compatible summarizing the 18 CVE fixes across the 4.1, 4.0, and 3.5 LTS branches (Linuxiac, Linux Compatible). The vulnerability was also tracked by Cloudflare Radar and security intelligence platforms shortly after disclosure. Community reaction has been measured given the Moderate severity rating and the prerequisite of DNS forgery capability.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

openssl

Fixed

sid

openssl

Affected

trixie

openssl

Fixed

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-9

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related OpenSSL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-123780HIGH7.5
  • OpenSSL logoOpenSSL
  • openssl
NoYesDec 01, 2026
CVE-2026-120667HIGH7.5
  • OpenSSL logoOpenSSL
  • openssl
NoYesDec 01, 2026
CVE-2026-84785MEDIUM6.5
  • OpenSSL logoOpenSSL
  • edk2
NoYesNov 24, 2026
CVE-2026-120666NONEN/A
  • OpenSSL logoOpenSSL
  • openssl-provider-fips
NoYesDec 01, 2026
CVE-2026-120665NONEN/A
  • OpenSSL logoOpenSSL
  • openssl
NoYesDec 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management