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


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.
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:
- The client offers common cipher suites such as ECDHE_RSA.
- The fake server picks one, sends no certificate, and sends its key exchange with no signature.
- Erlang’s
sslcode reads the missing signature as “anon”, the signature type for anonymous suites, and its check passes because there’s nothing to verify. - Nothing checks that a certificate ever arrived, so the client finishes the handshake with the attacker’s key.
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 orApplication.spec(:ssl, :vsn)in Elixir shows thesslversion. - 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.