News

OpenSSL CVE-2026-123780: Repeated ClientHellos Can Eat All Your Server’s RAM. Update to 4.1.1 or 4.0.4

December 3, 2026 · 4 min read · John Crump
Neon diagram of OpenSSL CVE-2026-123780: an unauthenticated attacker sends repeated ClientHellos on one connection; an OpenSSL 4.x server keeps the connection open after refusing renegotiation and appends about 128 KB per message to its ECH transcript buffer with no size limit until RAM is exhausted, with notes reading fix 4.1.1 / 4.0.4, 3.x branches not listed as affected, CVSS 7.5, OpenSSL moderate, no amplification

If you run a server on OpenSSL 4.x, add this one to your patch list. CVE-2026-123780 lets anyone who can open a TLS connection to your server make it eat memory until it falls over. No login needed, and the default configuration is vulnerable. The fix shipped on December 1 in OpenSSL 4.1.1 and 4.0.4.

The short version

  • Affected: OpenSSL 4.1.0 and 4.0.0 through 4.0.3
  • Fixed in: OpenSSL 4.1.1 and 4.0.4
  • Severity: CVSS 7.5 (High) in the CVE record. OpenSSL’s own rating is Moderate.
  • The bug: a buffer for Encrypted Client Hello (ECH) keeps growing every time a client sends another ClientHello on the same connection, with no size limit
  • Who’s exposed: TLS and DTLS servers in their default setup, including TLS 1.2-only servers and servers that never turned on ECH
  • Login needed: none
  • Exploited? Not reported as exploited so far
  • Older branches: 3.x, 1.1.1 and 1.0.2 aren’t on the affected list

How the attack works

ECH is a newer TLS feature that encrypts the first message a client sends, the ClientHello, so eavesdroppers can’t see which site you’re visiting. To support it, OpenSSL 4.x keeps a copy of the “inner” ClientHello in a per-connection buffer.

The trouble is that it adds every ClientHello carrying an inner ECH extension to that buffer, even ones it then rejects, and it never caps the size. That code runs on every ClientHello whether or not you’ve set up ECH, because ECH support is compiled in by default.

So an attacker just needs a way to send ClientHellos over and over on one connection. A default TLS 1.2 or DTLS 1.2 server makes that easy. When a client asks to renegotiate, the server refuses with a warning but leaves the connection open, so the client can keep going. DTLS cookie exchanges and repeated stateless TLS 1.3 handshakes reach the same code. Each ClientHello can add up to roughly 128 KB.

  1. Open a TLS connection to the server.
  2. Send a ClientHello with the inner ECH extension.
  3. Ask to renegotiate. The server says no but keeps the connection up.
  4. Repeat. Each round adds up to about 128 KB the server never frees.
  5. Open more connections until the server runs out of memory.

Why OpenSSL calls it Moderate, not Critical

There’s no amplification. The attacker has to send about as much data as the server ends up holding, and the memory is released when the connection closes. It’s a straightforward denial-of-service with no code execution or data leak. Still, it affects default configurations and needs no login, which is why it scores 7.5 in the CVE record. An internet-facing server that keeps idle connections around can be knocked over by one determined client.

The affected code is outside OpenSSL’s FIPS module boundary, so the FIPS provider itself isn’t affected.

Am I affected?

Only the 4.0 and 4.1 branches are listed as affected. Plenty of systems still run 3.x, which isn’t on the list. The catch is that the system openssl command isn’t the whole story. Applications and containers can bundle their own copy of the library.

Check the system version:

openssl version

Then see which libssl a running service actually loaded (swap in your service’s PID):

sudo grep -E 'libssl|libcrypto' /proc/<PID>/maps | awk '{print $6}' | sort -u

For containers, run openssl version inside the container or check the image’s package list. Anything showing 4.0.0–4.0.3 or 4.1.0 needs updating.

What to do

  • Upgrade to OpenSSL 4.1.1 or 4.0.4, or install your distro’s or vendor’s patched package. OpenSSL lists no workaround.
  • Restart everything that uses TLS afterward. A running process keeps the old library in memory until it restarts.
  • Rebuild container images that bundle OpenSSL 4.x, then redeploy them.
  • Start with internet-facing TLS and DTLS services: reverse proxies, VPN endpoints, mail servers, anything on a public port.

Also in this release

4.1.1 fixes 16 issues in total. None is rated higher than Moderate. Two others worth knowing about:

  • CVE-2026-120665 (Moderate): in some handshake retries, a client using ECH can check the server’s certificate against the wrong hostname, which could let an attacker impersonate the server. Only ECH clients are affected.
  • CVE-2026-120667 (Moderate): an ASN.1 heap overflow that can crash apps parsing certain untrusted certificates or revocation lists over 4 GiB.

The rest are Low and include several QUIC memory issues. Some of these fixes also landed in 3.5.10 and 3.0.24, so if you’re on 3.x it’s still worth picking up the latest point release.

Credit for CVE-2026-123780 goes to Anthropic’s OSS Scanner and Areg Gasparyan. Matt Caswell developed the fix.

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *