Be first to know. Be ready to defend.

Erlang/OTP CVE-2026-124286: TLS 1.2 clients accept a server with no certificate

Illustration of the flawed TLS handshake: the client sets verify_peer, the server sends no Certificate message and a key exchange with no signature, and ssl:connect/3 still returns ok; fixed in OTP 29.0.3, 28.5.0.9 and 27.3.4.14Illustration of the flawed TLS handshake: the client sets verify_peer, the server sends no Certificate message and a key exchange with no signature, and ssl:connect/3 still returns ok; fixed in OTP 29.0.3, 28.5.0.9 and 27.3.4.14
On this page
  1. Who is exposed
  2. How the attack works
  3. Why it matters
  4. What to do

Erlang/OTP’s TLS client can finish a handshake with a server that never proves who it is. If an attacker sits between your Erlang or Elixir application and the server it calls, they can pose as that server and read or change everything the application sends. Turning on certificate verification doesn’t help.

The flaw, CVE-2026-124286, affects clients that can use TLS 1.2 or DTLS. The Erlang Ecosystem Foundation, which assigns CVEs for the Erlang ecosystem, rates it 9.1 out of 10 and published the advisory on 24 November.

Who is exposed

OTP 27 and 29 systems that took the July updates are already safe. The OTP team fixed those lines on 2 July in OTP 29.0.3 and OTP 27.3.4.14, as a minor hardening change to how the TLS client handles anonymous cipher suites. The OTP 28 line missed that change.

The OTP 28.5.0.9 release notes say the change should have gone into 28.5.0.3. They also say it turned out to have more serious consequences than the team had considered. So OTP 28 systems stayed exposed until 24 November, and every release before July is affected all the way back to OTP 17.0.

Which Erlang/OTP versions fix CVE-2026-124286. OTP 29: fixed in 29.0.3 (ssl 11.7.3), released 2 July 2026. OTP 28: fixed in 28.5.0.9 (ssl 11.6.0.8), released 24 November 2026. OTP 27: fixed in 27.3.4.14 (ssl 11.2.12.10), released 2 July 2026. OTP 29 and 27 got the hardening change in July. OTP 28 missed it until 24 November. Older lines back to OTP 17.0 are affected and have no fixed release.Which Erlang/OTP versions fix CVE-2026-124286. OTP 29: fixed in 29.0.3 (ssl 11.7.3), released 2 July 2026. OTP 28: fixed in 28.5.0.9 (ssl 11.6.0.8), released 24 November 2026. OTP 27: fixed in 27.3.4.14 (ssl 11.2.12.10), released 2 July 2026. OTP 29 and 27 got the hardening change in July. OTP 28 missed it until 24 November. Older lines back to OTP 17.0 are affected and have no fixed release.

The fixed versions of the ssl application are 11.7.3, 11.6.0.8 and 11.2.12.10. Older OTP lines have no fixed release.

How the attack works

A TLS 1.2 server normally sends its certificate, then signs its key exchange so the client knows the key came from the certificate’s owner. The technical advisory explains how an attacker skips both steps:

  1. The client offers common cipher suites such as ECDHE_RSA.
  2. The fake server picks one, sends no certificate, and sends its key exchange with no signature.
  3. Erlang’s ssl code reads the missing signature as “anon”, the signature type for anonymous suites, and its check passes because there’s nothing to verify.
  4. Nothing checks that a certificate ever arrived, so the client finishes the handshake with the attacker’s key.

How the attack works. The Erlang client sends ClientHello offering ECDHE_RSA suites. The fake server answers with ServerHello, picking an offered suite, then sends no Certificate message and a ServerKeyExchange with no signature. The client reads it as anon and accepts it, then sends its own key exchange and Finished. ssl:connect returns ok with verify_peer set. Certificate validation, verify_fun and the hostname check never run. TLS 1.3 clients and servers are not affected.How the attack works. The Erlang client sends ClientHello offering ECDHE_RSA suites. The fake server answers with ServerHello, picking an offered suite, then sends no Certificate message and a ServerKeyExchange with no signature. The client reads it as anon and accepts it, then sends its own key exchange and Finished. ssl:connect returns ok with verify_peer set. Certificate validation, verify_fun and the hostname check never run. TLS 1.3 clients and servers are not affected.

ssl:connect/3 returns {ok, Socket} even with {verify, verify_peer} set. Certificate path validation, any custom verify_fun and the hostname check never run. The connection is encrypted, but with a key the attacker holds.

The ECDHE_RSA, ECDHE_ECDSA, DHE_RSA and DHE_DSS key exchanges are affected. Suites that don’t use a signed key exchange, such as plain RSA, aren’t. The TLS 1.3 client isn’t affected, and nor is any server.

Why it matters

The ssl application handles TLS for almost everything on the BEAM, the virtual machine Erlang and Elixir run on. That covers Elixir HTTP clients, database drivers and message broker links such as RabbitMQ shovels and federation. Any of them that call out over TLS 1.2 could connect to an impostor, and ssl:connect allows TLS 1.2 by default.

The attacker needs to be on the network path: a hostile Wi-Fi network, a compromised router, DNS or routing tricks, or a foothold inside a cloud network. Erlang hasn’t reported any attacks.

Phillip Calvin found and reported the flaw. Jonatan Männchen of the Erlang Ecosystem Foundation coordinated the disclosure, and Ingela Anderton Andin wrote the fix.

It’s a busy week for the ecosystem. On 24 November, Hex.pm, the package registry for Erlang and Elixir, disclosed a security incident: an attacker ran commands on its web servers on 23 November. That’s a separate issue, and nothing links the two.

What to do

  • Upgrade to OTP 29.0.3, 28.5.0.9 or 27.3.4.14, or any later release on those lines. If you’re on OTP 26 or older, move to a supported line.
  • Check the runtime your service actually loads, not just your build files. Containers, release tarballs and vendor products often bundle their own OTP. In a running node, application:get_key(ssl, vsn) in Erlang or Application.spec(:ssl, :vsn) in Elixir shows the ssl version.
  • Until you can upgrade, the advisory suggests limiting clients to TLS 1.3 with {versions, ['tlsv1.3']}, if the servers you call support it. Test first.
  • If a client must stay on TLS 1.2, the advisory’s other workaround is to offer only static RSA suites. That works, but you lose forward secrecy and many servers refuse those suites.
  • Ask vendors whose products run on Erlang, such as message brokers and chat servers, which OTP version they ship.