Supply Chain Security

Erlang/OTP CVE-2026-124286: Twelve Years of TLS Clients That Skipped the Certificate

Dark cyberpunk illustration of a lone courier figure handing a glowing amber parcel across a rain-slicked night checkpoint where the gate barrier stands raised and the guard booth is empty, cyan light tracing the open road beyond.

ssl:connect/3 returned {ok, Socket}. The client had {verify, verify_peer} set, a CA bundle loaded and a hostname to check. The server on the other end had sent no certificate at all.

That is CVE-2026-124286, published by the Erlang Ecosystem Foundation on November 24 and scored 9.1 under CVSS 4.0. It sits in the TLS 1.2 and DTLS client of Erlang/OTP's ssl application, from ssl 5.3.4 forward. That is every release since OTP 17.0, which shipped in 2014. Erlang servers are unaffected. TLS 1.3 clients are unaffected. Every TLS 1.2 connection your BEAM code has dialled out for the last twelve years completed without anyone checking who answered.

If nothing in your estate runs on the BEAM, stop here, this one is not for you. Most teams who do run it did not choose Erlang; they chose RabbitMQ, CouchDB, ejabberd or EMQX and got Erlang underneath. The exposed surface is narrow and specific: connections your Erlang code initiates. A shovel to a partner's broker, a replication target, an LDAPS bind against a directory, an outbound webhook, a peer-discovery call to a cloud API. An attacker who can sit on that path reads and rewrites the traffic, and because the attacker chooses the cipher suite, the kind of key in the real server's certificate buys you nothing.

What the client skipped

The NVD record is unusually precise about the mechanism, so there is no need to guess at it. A malicious server sends no Certificate message and a ServerKeyExchange carrying no signature. ssl_handshake:decode_server_key/3 reports the signature algorithm for that message as anon, and ssl_handshake:verify_signature/5 returns true for anon without ever being handed a public key. The client then does not insist on a certificate for a key exchange that is defined to be certificate-authenticated, so the handshake runs to completion.

Three checks you configured never execute. Certificate path validation does not run, because there is no path. Your verify_fun does not run, so a pinning callback you wrote yourself is bypassed rather than triggered. The hostname check does not run. ssl:connect/3 hands back a socket and an {ok, _} tuple, and nothing in the return value distinguishes this from a properly authenticated session.

The vendor advisory and the CVE record agree on the scope. The affected key exchanges are ecdhe_rsa, ecdhe_ecdsa, dhe_rsa and dhe_dss - the ones that use a ServerKeyExchange. Suites without one, meaning RSA key transport, ecdh_rsa and ecdh_ecdsa, are clean. The server has to pick a suite the client offered, and a default Erlang client offers the ephemeral Diffie-Hellman suites and allows TLS 1.2, which is why the default configuration is the vulnerable one. CWE-347, improper verification of a cryptographic signature, is the right label: the code treated the absence of a signature as a valid signature.

Three patched tracks, and plenty of estates on none of them

The fix landed in OTP 27.3.4.14, 28.5.0.9 and 29.0.3, which correspond to ssl 11.2.12.10, 11.6.0.8 and 11.7.3. Read that list again for what it leaves out. OTP 17 through 26 are affected and have no patched release. If you are on OTP 26 or older, there is no version bump that fixes this; the only route is a move onto a maintained major, and on an appliance or a vendor image that may not be a decision you own.

The ssl application version is the number that settles it, and it is written into the directory name of every install, which means you can inventory a host or an image without starting a VM. This runs on anything with a POSIX shell and sort -V:

# CVE-2026-124286: every Erlang ssl application on this host, with a verdict.
# Patched: ssl 11.2.12.10 (OTP 27.3.4.14), 11.6.0.8 (OTP 28.5.0.9), 11.7.3 (OTP 29.0.3).

older() { [ "$1" = "$(printf '%s\n%s\n' "$1" "$2" | sort -V | head -1)" ] && [ "$1" != "$2" ]; }

verdict() {
  case $1 in
    11.2.*) fix=11.2.12.10 ;;
    11.6.*) fix=11.6.0.8 ;;
    11.7.*) fix=11.7.3 ;;
    *) older "$1" 5.3.4 && { echo "not affected"; return; }
       echo "NO FIX ON THIS TRACK - move to OTP 27.3.4.14, 28.5.0.9 or 29.0.3"; return ;;
  esac
  older "$1" "$fix" && { echo "VULNERABLE - needs ssl $fix"; return; }
  echo "patched"
}

find / -xdev -type d -name 'ssl-*' -path '*/lib/ssl-*' 2>/dev/null | while read -r d; do
  v=${d##*/ssl-}
  printf '%-52s %-12s %s\n' "$d" "$v" "$(verdict "$v")"
done

Output on a host carrying four copies looks like this, and the third line is the one that generates work:

/usr/lib/erlang/lib/ssl-11.2.12              11.2.12      VULNERABLE - needs ssl 11.2.12.10
/opt/rabbitmq/erlang/lib/ssl-11.6.0.7        11.6.0.7     VULNERABLE - needs ssl 11.6.0.8
/usr/lib/couchdb/erlang/lib/ssl-10.9.1       10.9.1       NO FIX ON THIS TRACK - move to OTP 27.3.4.14, 28.5.0.9 or 29.0.3
/srv/app/_build/prod/rel/myapp/lib/ssl-11.7.3  11.7.3     patched

The NO FIX ON THIS TRACK verdict covers ssl 11.0 through 11.5, plus everything on 10.x and below. Those are not stragglers waiting for a patch. They are branches the fix was never backported to, and the OTP version ordering rules are worth reading before you argue with the comparison, because OTP patch versions are not plain semver.

Where the ssl application is hiding in a small estate

Four places, in the order they catch people out.

Erlang and Elixir releases you build yourself

A release bundles the runtime. The ssl copy that matters is the one under _build/prod/rel/<app>/lib/, not whatever erl on the build host reports. Upgrading the base image patches nothing until you rebuild and redeploy the release. Every HTTP client in the ecosystem funnels down to ssl eventually, so an application that calls one Stripe endpoint is in scope.

RabbitMQ, where the OTP version may not be yours to pick

RabbitMQ publishes a supported Erlang matrix, and it is the reason this patch is not a one-line ticket for everyone. RabbitMQ 3.13.0 through 3.13.7 supports a maximum of OTP 26.2.x. So does 4.0.1 through 4.0.3. Both of those ceilings sit below every patched release, so those clusters cannot take the fix at all until the broker itself is upgraded. The 4.1.x and 4.2.0 through 4.2.8 series top out at OTP 27.x, which means 27.3.4.14 drops straight in. Find out which series you are on before you promise anyone a date.

RabbitMQ acts as a TLS client in more places than teams expect: shovel and federation links to remote brokers, the LDAP authentication backend talking LDAPS to a directory, and HTTPS peer discovery against Kubernetes, Consul or etcd. A broker with no TLS listener configured at all can still be exposed through any of those.

CouchDB, ejabberd, EMQX and the rest of the BEAM estate

CouchDB is an Erlang application, and replication to a remote HTTPS endpoint makes it a TLS client. ejabberd dials out for server-to-server federation and for LDAPS. EMQX bridges to upstream brokers. Six days after publication I cannot find a notice from any of these projects that names CVE-2026-124286, so the bundled version is yours to establish rather than theirs to announce. The directory listing in the sweep above answers it in one command per container.

Appliances and images you cannot rebuild

Network and monitoring appliances ship Erlang inside firmware more often than their datasheets admit. If the sweep cannot reach inside the image, treat the device as unpatched, work out whether it makes outbound TLS 1.2 connections, and put the mitigation below in front of it instead.

Pin TLS 1.3 on the clients you cannot upgrade this week

The advisory's own workaround is the right one, and it is a client-side change you can ship before the version question is resolved. Removing TLS 1.2 from a client removes the vulnerable code path, because TLS 1.3 has no ServerKeyExchange and the TLS 1.3 client was never affected:

%% The bug needs TLS 1.2 (or DTLS 1.2) and a ServerKeyExchange. Taking TLS 1.2
%% off the client takes the path away, even on an unpatched ssl application.
{ok, Sock} = ssl:connect("broker.internal", 5671,
  [{verify, verify_peer},
   {cacerts, public_key:cacerts_get()},
   {versions, ['tlsv1.3']},
   {server_name_indication, "broker.internal"},
   {customize_hostname_check,
     [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]}],
  5000).

Whatever HTTP or AMQP library sits in the way, these options reach ssl as transport options, so set versions there rather than hunting for a library-specific flag. Two cautions. First, the pin will break any endpoint that still has no TLS 1.3 listener, and you want that failure in a staging run rather than at 2 a.m. in production, so inventory your outbound destinations first. Second, the advisory mentions restricting the client to static RSA key transport suites as a last resort and explicitly does not recommend it: no forward secrecy, and a growing number of servers will refuse the handshake outright. Take the TLS 1.3 pin where you can and leave static RSA alone.

Querying a running node is the fastest way to find out where you stand on a system you already operate:

# A running RabbitMQ node will tell you both numbers.
rabbitmqctl eval 'application:load(ssl), application:get_key(ssl, vsn).'
rabbitmq-diagnostics status | grep -iE 'Erlang|OTP'

# Any other Erlang install, without starting your application.
erl -noshell -eval 'application:load(ssl), {ok, V} = application:get_key(ssl, vsn),
  io:format("ssl ~s on OTP ~s~n", [V, erlang:system_info(otp_release)]), halt().'

# Container images: the directory name is the whole answer.
docker run --rm --entrypoint sh rabbitmq:4.1-management -c 'ls -d /usr/lib/erlang/lib/ssl-*'

# An Elixir or Erlang release ships its own copy next to your beams.
ls -d /srv/*/_build/prod/rel/*/lib/ssl-* 2>/dev/null

Why your logs will not settle this

There is no detection story here, and pretending otherwise would waste your morning. A successful attack produces a successful handshake. The client logs a connection, the application logs a request, and the {ok, Socket} that came back is identical to the one a legitimate server would have produced. Nothing is dropped, no alert fires, and the one callback that might have noticed, your verify_fun, is on the far side of the check that was skipped.

Nor is the attack reachable from the open internet on its own. CVSS 4.0 marks attack requirements as present for a reason: somebody has to be on the path. That makes the realistic scenarios the boring ones, which are also the ones small estates actually have. Traffic crossing a site-to-site tunnel. A broker link that leaves your network to reach a partner. A replication target on a cloud provider you share a segment with. A DNS answer that can be influenced. The honest verification is a version inventory and a configuration review, not a hunt through last week's logs.

Decide which clients change OTP tracks this week

Run the sweep across your BEAM hosts and container images today and write down three numbers: how many ssl copies you found, how many are on a track that has a fix, and how many are on a track that does not. The first number is usually higher than people expect, because releases and container images each carry their own. The third number is the one that turns a patch ticket into a project, and on RabbitMQ 3.13 or 4.0.1 through 4.0.3 it means a broker upgrade, not an Erlang upgrade. For anything in that third pile, pin TLS 1.3 on the client this week and schedule the version move deliberately.

Not sure what your estate actually runs?

We inventory what is installed rather than what is documented: the runtimes bundled inside appliances and container images, the outbound connections those runtimes make, and the versions nobody owns. Book a session to walk through yours.