Summary
OpenSSL TLS and DTLS servers keep a per-connection copy of the inner ClientHello so that ECH (Encrypted Client Hello) can confirm the handshake. Every ClientHello carrying an encrypted_client_hello extension of type inner is appended to that copy without limit, including ones the server refuses. The copy is freed only when the connection is freed. This code runs for every received ClientHello, even if the server has no ECH configuration or does not support TLS 1.3. ECH support is built in by default, so servers in their default configuration are affected, including TLS 1.2-only servers.
The CVSS 3.1 score is 7.5: the attack is network-based, low complexity, requires no authentication and no user interaction, and affects availability only. An attacker can repeat ClientHellos on the same connection through several paths: refused client-initiated renegotiation after a handshake with TLS/DTLS 1.2, DTLS cookie exchange (e.g. s_server -dtls, or SSL_new_listener() by default in 4.1), or repeated SSL_stateless() calls with TLS 1.3. Each ClientHello can add about 128 KB. Servers using DTLSv1_listen() are not affected via cookie exchange, but are affected via renegotiation.
The result is server memory exhaustion and denial of service. There is no amplification: the attacker must send as much data as the server retains. The memory is released when the application frees the connection. The vendor rates the issue as Moderate. The FIPS module is not affected. The vulnerability is not listed in CISA KEV.
Who is affected
Organizations running network-exposed TLS or DTLS servers built on OpenSSL 4.0.0–4.0.3 or 4.1.0.
What to do
- Upgrade OpenSSL 4.1.x to 4.1.1 and OpenSSL 4.0.x to 4.0.4.
- Inventory systems and applications (including statically linked and bundled copies) using OpenSSL 4.0.x or 4.1.0, e.g. with 'openssl version'.
- Restart services using OpenSSL after upgrading so the fixed library is loaded.
- Until patched, monitor memory usage of TLS/DTLS services and long-lived connections with repeated handshakes.
- Review the official advisory for details: https://openssl-library.org/news/secadv/20261201.txt
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-770 Allocation of Resources Without Limits or Throttling
References
- openssl-library.org/news/secadv/20261201.txt vendor advisory
- github.com/openssl/openssl/commit/e268c987b15c19e01dfb9151fe2083c61be87e40 patch
- github.com/openssl/openssl/commit/467a4a7f6095e65eb9925b64493073063c62f03f patch
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.