CVE-2026-123780: OpenSSL servers keep every ClientHello in an ECH transcript buffer that never shrinks

ByLinuxtastic

December 1, 2026 #CVE, #OpenSSL

OpenSSL 4.0 added Encrypted Client Hello, and to confirm an ECH handshake the server keeps a per-connection copy of the inner ClientHello. The server-side code appends every ClientHello that carries an encrypted_client_hello extension of type inner to that copy, including ones it goes on to refuse, and the copy is only freed with the connection; it runs for every ClientHello whether or not the server has an ECH configuration and whether or not it supports TLS 1.3. A peer that can make the server read ClientHello after ClientHello on the same connection therefore chooses how much memory that connection holds: a completed TLS 1.2 client can keep asking to renegotiate (refused with a warning alert, connection kept open), a DTLS server doing cookie exchange reads ClientHellos before the address is validated, and a TLS 1.3 server calling SSL_stateless() repeatedly on one object does the same. Each ClientHello adds up to about 128 KB. Only OpenSSL 4.1.0 and 4.0.0–4.0.3 are affected; CISA scores it 7.5, OpenSSL rates it Moderate because servers in their default configuration are affected. The fix is merged and 4.1.1 / 4.0.4 are the fixed versions, not yet on the downloads page on 1 December. If a server you run links OpenSSL 4.0 or 4.1, rebuild from 4.1.1 or 4.0.4 when released or cherry-pick the fix now, and until then cap the service’s memory and connection lifetime.

CVE-2026-123780 at a glance.

ComponentOpenSSL, the server ClientHello handling in ssl/statem/statem_srvr.c that maintains the ECH inner transcript, reached by TLS and DTLS servers alike
Affected versionsOpenSSL 4.1.0 and 4.0.0 to 4.0.3, per the OpenSSL CNA record. ECH support arrived in 4.0 and is built in by default; 3.5 and older have no ECH code and are not named
Fixed in4.1.1 and 4.0.4 per the record and the project’s vulnerabilities page; the fix commits e268c987 (4.1) and 467a4a7f (4.0), “Stop the ECH inner transcript growing across ClientHellos” by Matt Caswell, were both merged 30 November 2026 (ssl/statem/statem_srvr.c +15 −1 and a 207-line test in test/ech_test.c). Neither release was on openssl-library.org/source on 1 December 2026, which still listed 4.1.0 and 4.0.3, and the 1 December advisory file returned a client error
SeverityOpenSSL: Moderate (“a single connection can grow without limit and servers in their default configuration are affected”). CISA ADP CVSS 3.1 7.5 High (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), CWE-770 (allocation without limits); SSVC Exploitation none, Automatable yes, Technical Impact partial. NVD Received with the ADP score. The record notes there is no amplification: the attacker sends as many bytes as the server retains
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS: no score yet on 1 December 2026
Who is exposedAny TLS or DTLS server built on OpenSSL 4.0 or 4.1, in its default configuration, including TLS 1.2-only servers: the paths are refused client renegotiation on an established TLS 1.2 or DTLS 1.2 connection, DTLS cookie exchange (openssl s_server -dtls and the 4.1 SSL_new_listener() DTLS listener), and repeated SSL_stateless() calls on one object. Servers using DTLSv1_listen() escape the cookie-exchange path but not renegotiation. Clients are not affected. Distribution system libraries are on 3.x and have no ECH code
PublishedCVE record and vulnerabilities-page entry 1 December 2026 (fix merged 30 November); this page built 1 December 2026, last updated 1 December 2026

What it is

ECH lets a client hide the real server name inside an encrypted inner ClientHello. To confirm later that the server accepted the inner hello, OpenSSL keeps a transcript copy of it on the connection. The record describes the defect plainly: the server appends every ClientHello carrying an inner-type encrypted_client_hello extension to that copy, “including ones the server goes on to refuse, and the copy is only freed with the connection”. Nothing gates the code on the server actually offering ECH. It runs on every ClientHello the server reads, ECH configuration or not, TLS 1.3 or not, and ECH is compiled in by default, so a plain TLS 1.2 server built on 4.0 is in scope.

What turns that into an attack is any loop in which the server keeps reading ClientHellos on one connection. The record lists three. A TLS 1.2 or DTLS 1.2 server, by default, answers a client’s renegotiation attempt with a warning alert and keeps the connection open, so a client that has finished one handshake can send renegotiation ClientHellos for as long as it likes and each one is appended. A DTLS server doing cookie exchange, which is what openssl s_server -dtls does and what a DTLS listener from SSL_new_listener() does by default in 4.1, reads ClientHellos before the peer’s address is validated. And a TLS 1.3 server that calls SSL_stateless() repeatedly on one SSL object takes the same path. Each ClientHello can contribute up to about 128 KB, there is no amplification, and the memory goes when the application frees the connection, so the cost to the attacker is bandwidth and the cost to the server is whatever a long-lived connection is allowed to hold.

The fix commit is small: 15 lines in ssl/statem/statem_srvr.c so that DTLS and renegotiation ClientHellos are no longer fed to the ECH transcript at all and the transcript is reset for each new ClientHello unless it is the answer to a HelloRetryRequest, plus a test that drives the renegotiation loop. It was found by Anthropic’s OSS Scanner (finding ANT-2026-8IUPV8SB), with Areg Gasparyan and Matt Caswell credited, reviewed by Tomas Mraz and Bob Beck, and merged on 30 November on both the 4.1 and 4.0 branches. It is one of four CVEs in OpenSSL’s 1 December set with CVE-2026-120667 (ASN.1 cached-encoding overflow), CVE-2026-120665 (ECH public-name verification bypass on the client side) and CVE-2026-120666 (AES-SIV late AAD); the advisory text could not be read on 1 December, so the facts here come from the records, the vulnerabilities page and the commits.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. No distribution listed here ships OpenSSL 4.0 or 4.1 as a system library on 1 December 2026 as far as their own pages show, and the trackers for this id were unreachable, so every row is “nothing inferred”; the exposure is in source builds and bundled copies.

DistributionStatusFixed package
AlpineNot consulted on 1 December 2026; nothing inferred—
DebianTracker unreachable on 1 December 2026 (client error); nothing inferred for this id. Debian’s page for CVE-2026-35190 shows bookworm on 3.0, trixie on 3.5 and forky/sid on 3.6.5, none on the affected 4.x lines—
UbuntuTracker unreachable on 1 December 2026 (server error, two attempts); nothing inferred—
RHEL, Rocky, Alma, CentOS StreamRed Hat page and hydra JSON unreachable on 1 December 2026 (client error); nothing inferred. Red Hat’s page for CVE-2026-35190 places RHEL 10 on the 3.5 line and RHEL 8 and 9 below it—
SUSE · Fedora · ArchSUSE’s page returned an empty body on 1 December 2026; Fedora and Arch not consulted—
Source builds, vendored copies, containers, appliancesThe upstream fix applies: 4.1.0 and 4.0.0–4.0.3 are affected, nothing olderOpenSSL 4.1.1 or 4.0.4 when released; until then commit e268c987 (4.1) or 467a4a7f (4.0)

How to check

Three questions, in order: is a 4.0 or 4.1 libssl on the host at all, which listening processes have it mapped, and do any of them accept TLS 1.2 connections (renegotiation path), DTLS (cookie exchange) or use SSL_stateless(). A listener on a 4.x libssl is exposed by default; the third question only tells you which path.

# 1. any 4.x libssl on the host (distribution packages are 3.x and not affected)
openssl version
find / -xdev -name "libssl.so.4*" 2>/dev/null

# 2. listening processes with a 4.x libssl mapped
for p in $(sudo ss -tulnpH | grep -oE "pid=[0-9]+" | cut -d= -f2 | sort -u); do
  grep -q "libssl.so.4" /proc/$p/maps 2>/dev/null && echo "pid $p $(cat /proc/$p/comm) $(sudo ss -tulnpH | grep "pid=$p," | awk '{print $1, $5}' | sort -u | tr "\n" " ")"
done

# 3. which path: TLS 1.2 offered (renegotiation), DTLS listeners, SSL_stateless() callers
openssl s_client -connect 127.0.0.1:443 -tls1_2 </dev/null 2>/dev/null | grep -E "Protocol|Cipher"   # a TLS 1.2 answer means the renegotiation path is open
sudo ss -ulnp | grep -E "pid=" | head                                                               # UDP listeners: DTLS candidates
for b in $(sudo grep -l "libssl.so.4" /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | xargs -r -I{} readlink /proc/{}/exe | sort -u); do
  nm -D "$b" 2>/dev/null | grep -Eq " U (SSL_stateless|DTLSv1_listen|SSL_new_listener)" && echo "$b: $(nm -D "$b" | grep -oE "SSL_stateless|DTLSv1_listen|SSL_new_listener" | sort -u | tr "\n" " ")"
done

No libssl.so.4 in step 1 means no exposure on this host. A listener in step 2 is affected as it stands; step 3 tells you whether an attacker needs a completed TLS 1.2 handshake first (the common case) or can do it unauthenticated from the first datagram (DTLS cookie exchange, SSL_stateless()). After the fact, the sign is a server process whose resident memory climbed steadily while one or a few client connections stayed open and fell back when they closed; ss -tnp during the climb shows the connections, and the service’s memory accounting (systemctl status, /sys/fs/cgroup/.../memory.current) shows the curve. The record says the memory is released when the connection is freed, so there is no lasting trace once the peer is gone.

How to fix it

For a source build, rebuild from 4.1.1 or 4.0.4 when the release appears or cherry-pick the fix commit now, then restart every listener that has the library mapped; a long-running daemon keeps the old copy in memory until it is restarted. Distribution packages are on the 3.x lines and need nothing for this CVE.

# source build: rebuild when 4.1.1 / 4.0.4 is on https://openssl-library.org/source/, or cherry-pick now
git -C openssl fetch origin && git -C openssl cherry-pick e268c987b15c19e01dfb9151fe2083c61be87e40   # 4.1 branch
# (4.0 branch: 467a4a7f6095e65eb9925b64493073063c62f03f)
./Configure && make -j"$(nproc)" && make test && sudo make install_sw

# then restart every listener that still has the old libssl mapped
sudo grep -l "libssl.so.4" /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | sort -u | xargs -r ps -o pid,comm -p

The record names no workaround, and the obvious one does not work: refusing client renegotiation is already the default and is exactly the path the record describes, since the refused ClientHello is appended before it is refused. What limits the damage until the rebuild is our reading, not OpenSSL’s: bound the memory of the service so an exhausted connection restarts the daemon rather than the host, close idle and long-lived connections on a timer, and for DTLS restrict the UDP port to the networks that need it. What not to do: do not disable ECH in the server configuration and call it fixed, because the transcript code runs whether or not the server has an ECH configuration; and do not assume a TLS 1.2-only server is out of scope, because the record says the opposite.

# cap the service's memory so an exhaustion is a restart, not a host-wide OOM (systemd)
sudo systemctl edit my-tls-server.service
# add:  [Service]
#       MemoryMax=512M
#       Restart=on-failure
sudo systemctl daemon-reload && sudo systemctl restart my-tls-server.service
# for a DTLS listener, restrict the UDP port until the rebuild
sudo nft add rule inet filter input udp dport 4433 ip saddr != 10.0.0.0/8 drop

Set the ceiling to what the service needs with headroom, and the timeout to what its clients tolerate; a reverse proxy in front of the server that terminates TLS on a 3.x library is the other way to keep the 4.x build off the open network.

Sources

  • CVE-2026-123780 at CVE.org — the OpenSSL CNA record (1 December 2026): the transcript copy, the three loops (renegotiation, DTLS cookie exchange, SSL_stateless), the 128 KB per ClientHello, no amplification, Moderate, affected 4.1.0 and 4.0.0–4.0.3, no FIPS impact, credits Anthropic’s OSS Scanner, Areg Gasparyan and Matt Caswell
  • OpenSSL vulnerabilities page — the 1 December 2026 entry: Moderate, fixed in 4.1.1 (commit e268c987) and 4.0.4 (commit 467a4a7f)
  • Commit e268c987 and 467a4a7f — “Stop the ECH inner transcript growing across ClientHellos”, Matt Caswell, merged 30 November 2026 on 4.1 and 4.0; ssl/statem/statem_srvr.c (+15 −1) and test/ech_test.c (+207); “Fixes CVE-2026-123780”; reviewed by Tomas Mraz and Bob Beck
  • openssl-library.org/source — on 1 December 2026 still 4.1.0, 4.0.3 and 3.5.9; the advisory file secadv/20261201.txt returned a client error
  • NVD entry — Received; published 1 December 2026; CISA ADP CVSS 3.1 7.5 and SSVC; CWE-770; no CPEs
  • Distribution trackers: Debian, Red Hat (client error), Ubuntu (server error) and SUSE (empty page) on 1 December 2026
  • CISA KEV catalogue 2026.11.30, not listed · EPSS no score on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.