Erlang/OTP: the TLS 1.2 flaw that impersonates any server

An Erlang/OTP TLS client completes the handshake even when the server sends no certificate. A man-in-the-middle can impersonate any server and read or change the traffic.

Una sala de servidores en penumbra con candados, nodos de red iluminados en teal y un pasillo entre bastidores con acentos naranjas

Here is how a secure connection fails. An Erlang/OTP client, configured to verify who it is talking to, can accept a handshake from a server that never showed a certificate. The one check that was supposed to protect the whole conversation never runs.

On November 24 the Erlang/OTP team published the advisory for a critical flaw, CVE-2026-124286, scored 9.1 on CVSS. It lives in the TLS client of the ssl module. In a TLS 1.2 handshake, when the server sends no Certificate message and signs the ServerKeyExchange with an empty signature, the client treats that signature as anonymous and returns true with no public key to verify. The flaw is filed as CWE-347, improper verification of a cryptographic signature. The Erlang Ecosystem Foundation acts as the CNA for the record.

Certificate validation, the verify_fun, and the hostname check all skip. ssl:connect hands back {ok, Socket} as if the line were safe. An attacker in the middle can pose as any server and read or rewrite the whole exchange, even when the client demands full server authentication. It is the exact attack that identity verification in SSH exists to stop.

The gap opens on the ecdhe_rsa, ecdhe_ecdsa, dhe_rsa and dhe_dss key exchanges, the ones a TLS 1.2 client offers by default. TLS 1.3 clients are clean. So are servers, and so are suites that never use a ServerKeyExchange, like static RSA. DTLS clients on those same key exchanges are exposed too.

Erlang/OTP is no lab curiosity. It powers distributed systems like RabbitMQ, Ejabberd, Riak and CouchDB, plus the messaging backend of apps like WhatsApp. Any application built on the ssl module that opens outbound TLS or DTLS connections, HTTP clients included, is exposed from OTP 17.0. Your team does not need to write Erlang by hand. A library or a packaged service that pulls it in underneath is enough to ship the old version in your dependencies.

The fix lands on three tracks: OTP 27.3.4.14, OTP 28.5.0.9 and OTP 29.0.3, matching ssl 11.2.12.10, 11.6.0.8 and 11.7.3. It shipped the same November 24, listed in the patch note for the 28 line. The bug arrived with OTP 17.0, and the fix had already landed on the 29 and 27 tracks as hardening for a different scenario. The 28 track just missed it.

If you cannot upgrade right away, pin the client to TLS 1.3 with {versions, ['tlsv1.3']}. The TLS 1.3 handshake does not carry an unsigned ServerKeyExchange, so the hole does not exist there. Offering only static RSA suites also works, by filtering on key_exchange = rsa, but the team says to skip it. No forward secrecy, and plenty of servers no longer accept it, so the handshake can fail on its own.

Nobody has been seen exploiting it yet. The 9.1 reads critical under CVSS 4.0, though Red Hat rates it important because it needs an on-path attacker who can alter the handshake, a requirement the CVE record itself marks as an attack condition. Being on-path means sitting between the client and the server and altering the handshake in flight, which is why Red Hat calls the attack complexity high. That gap in severity changes nothing about the advice: patch.

Philip Calvin found it and reported it the responsible way, the kind of ethical hacker who raises the alarm before someone else uses it for harm. Same old story. One check gets skipped, one signature gets accepted on faith, and the encryption stops protecting you. If you run an Erlang/OTP client to reach third-party services, check your versions this week, and check the dependency files and containers that bundle an Erlang VM. That is where the old version hides.