CVE-2026-120665

Source
https://cve.org/CVERecord?id=CVE-2026-120665
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120665.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-120665
Downstream
Published
2026-12-01T16:35:02Z
Modified
2026-12-01T18:00:11Z
Summary
ECH Server Name Verification Bypass after HelloRetryRequest
Details

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.

Database specific
{
    "cna_assigner":  "openssl",
    "cwe_ids":  [
        "CWE-295"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120665.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "4.1.0"
                        },
                        {
                            "fixed":  "4.1.1"
                        },
                        {
                            "introduced":  "4.0.0"
                        },
                        {
                            "fixed":  "4.0.4"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StandardRange"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/openssl/openssl

Affected ranges

Type
GIT
Repo
https://github.com/openssl/openssl
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "fixed":  "d04683cbb0b31c64674921d5eaee83bccd515144"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "335f8ecac66d8fdb4104f94a41fb81c582cf2de2"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

4.*
4.0-POST-CLANG-FORMAT-WEBKIT
4.0-PRE-CLANG-FORMAT-WEBKIT
Other
BEFORE_engine
OpenSSL_0_9_1c
OpenSSL_0_9_2b
OpenSSL_0_9_3
OpenSSL_0_9_3a
OpenSSL_0_9_3beta2
OpenSSL_0_9_4
OpenSSL_0_9_5a
OpenSSL_0_9_5a-beta1
OpenSSL_0_9_5a-beta2
OpenSSL_0_9_5beta1
OpenSSL_0_9_5beta2
OpenSSL_0_9_6-beta3
OpenSSL_1_1_0-pre1
OpenSSL_1_1_0-pre2
OpenSSL_1_1_0-pre3
OpenSSL_1_1_0-pre4
OpenSSL_1_1_0-pre5
OpenSSL_1_1_0-pre6
OpenSSL_1_1_1
OpenSSL_1_1_1-pre1
OpenSSL_1_1_1-pre2
OpenSSL_1_1_1-pre3
OpenSSL_1_1_1-pre4
OpenSSL_1_1_1-pre5
OpenSSL_1_1_1-pre6
OpenSSL_1_1_1-pre7
OpenSSL_1_1_1-pre8
OpenSSL_1_1_1-pre9
master-post-auto-reformat
master-post-reformat
master-pre-auto-reformat
master-pre-reformat
openssl-3.*
openssl-3.0.0-alpha1
openssl-3.0.0-alpha10
openssl-3.0.0-alpha11
openssl-3.0.0-alpha12
openssl-3.0.0-alpha13
openssl-3.0.0-alpha14
openssl-3.0.0-alpha15
openssl-3.0.0-alpha16
openssl-3.0.0-alpha17
openssl-3.0.0-alpha2
openssl-3.0.0-alpha3
openssl-3.0.0-alpha4
openssl-3.0.0-alpha5
openssl-3.0.0-alpha6
openssl-3.0.0-alpha7
openssl-3.0.0-alpha8
openssl-3.0.0-alpha9
openssl-3.0.0-beta1
openssl-3.0.0-beta2
openssl-3.2.0-alpha1
openssl-3.2.0-alpha2
openssl-3.4.0-alpha1
openssl-4.*
openssl-4.0.0
openssl-4.0.0-alpha1
openssl-4.0.0-beta1
openssl-4.0.1
openssl-4.0.2
openssl-4.0.3
openssl-4.1.0
openssl-4.1.0-alpha1
openssl-4.1.0-beta1
openssl-4.1.0-beta2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120665.json"