Critical CVSS 9.1 Security news
Erlang/OTP TLS 1.2 client accepts a server with no certificate, letting an on-path attacker read and alter traffic (CVE-2026-124286)
On 24 November 2026 the Erlang/OTP project disclosed CVE-2026-124286, a critical flaw (CVSS 4.0 9.1) in the ssl application. A TLS 1.2 or DTLS client completes the handshake with a server that sends no certificate at all, even with verify_peer set, so an on-path attacker can impersonate any server. The OTP 27 and 29 branches had the fix since July; OTP 28 only got it on 24 November. No exploitation has been reported.
Key points
- Affects: the client side of the Erlang/OTP ssl application since OTP 17.0 - any Erlang, Elixir or other BEAM application that itself calls HTTPS APIs, databases or other services over TLS 1.2 or DTLS.
- The bug: if the server omits the Certificate message and sends an unsigned ServerKeyExchange, the client accepts the handshake, skipping chain validation, verify_fun and the hostname check, and ssl:connect returns success.
- Fixed in OTP 29.0.3, 28.5.0.9 and 27.3.4.14. The 28 branch was only fixed on 24 Nov 2026; the 29 branch shipped the hardening on 2 July 2026, according to its release page.
- Vendor workaround: allow only TLS 1.3 on clients ({versions, ['tlsv1.3']}). No exploitation reported so far.
Vulnerabilities: CVE-2026-124286
What happened
On 24 November 2026 the Erlang/OTP maintainers published security advisory GHSA-7mff-v332-665j, and the Erlang Ecosystem Foundation (EEF) CNA assigned it CVE-2026-124286. It is rated critical, CVSS 4.0 9.1. OTP 28.5.0.9 shipped the same day, with the fix listed in the release notes as OTP-20565 - a "missing hardening commit for OTP 28".
The order of the fixes matters. According to the fix commit, the same hardening had already landed on the 27 and 29 branches (OTP-20190) but was missed on 28. The OTP 29.0.3 release page is dated 2 July 2026. Anyone running the 28 branch stayed exposed for longer than everyone else - and the advisory says every version since OTP 17.0 is affected.
The advisory credits Phillip Calvin with finding and reporting the flaw, with EEF coordinating and Ingela Anderton Andin writing the fix. It notes the report was submitted with AI assistance.
Technical details
In a TLS 1.2 ECDHE or DHE key exchange, the server sends its certificate (the Certificate message) and key-exchange parameters signed with that certificate's key (ServerKeyExchange). The signature is what proves to the client that it is talking to the real server.
The ssl_handshake module in Erlang/OTP did not enforce this. If a server omits the Certificate message and sends an unsigned ServerKeyExchange, the client accepts the handshake. The attacker passes off anonymous ECDH as an authenticated suite such as ECDHE_RSA. The client then skips:
- certificate chain validation against trusted CAs,
- any custom
verify_fun, - the hostname check,
and ssl:connect returns {ok, Socket} even with verify_peer configured. The affected key exchanges are ecdhe_rsa, ecdhe_ecdsa, dhe_rsa and dhe_dss. The attacker picks the suite, so the real server's key type is irrelevant.
Exploitation requires an attacker on the path between client and server (same network, a rogue Wi-Fi access point, poisoned DNS or routing). From there they can read and modify all application data on the connection. We do not provide exploitation details.
Who is affected
- Erlang/OTP 17.0 up to, but not including, 27.3.4.14, 28.5.0.9 and 29.0.3 (ssl 5.3.4 up to, but not including, 11.2.12.10, 11.6.0.8 and 11.7.3).
- Clients only, over TLS 1.2 and DTLS. The default client configuration is affected if it offers TLS 1.2 with one of the key exchanges above.
- Not affected: servers, TLS 1.3 connections, and suites without a ServerKeyExchange (
rsa,ecdh_rsa,ecdh_ecdsa).
Our reading of the bug (not a vendor list): at risk are programs in Erlang, Elixir and other languages on the BEAM virtual machine that open outbound TLS connections themselves - calling HTTPS APIs, sending webhooks, connecting to databases or message brokers. Watch out for releases and container images that bundle their own runtime: updating the system Erlang will not fix them. The Elixir ecosystem was also hit last week by the Hex.pm breach.
How to tell if you were compromised
The vendor has not published indicators of compromise or detection guidance, and no exploitation is known. The attack happens on the network; in application logs the connection simply looks successful. In practice, what you can check is whether you are vulnerable - find the exact OTP and ssl versions:
cat "$(erl -noshell -eval 'io:format("~s",[code:root_dir()]),halt().')"/releases/*/OTP_VERSION
erl -noshell -eval 'application:load(ssl),{ok,V}=application:get_key(ssl,vsn),io:format("~s~n",[V]),halt().'
If you record outbound TLS (proxy, IDS, traffic mirroring), a TLS 1.2 ECDHE/DHE handshake in which the server sent no certificate is suspicious. You can break down the score in our CVSS calculator.
What to do
- Upgrade to OTP 29.0.3, 28.5.0.9 or 27.3.4.14 (ssl 11.7.3, 11.6.0.8 or 11.2.12.10), and rebuild releases and images that bundle the runtime.
- Until you can upgrade, restrict clients to TLS 1.3 with
{versions, ['tlsv1.3']}, the vendor's recommended workaround. Check that the peers you connect to support TLS 1.3. - Last resort per the vendor: offer only static RSA key-transport suites. They lack forward secrecy and many servers reject them, so this is not recommended.
- After patching, consider rotating secrets (API keys, tokens, passwords) the application sent over TLS 1.2 across networks where an on-path attacker was plausible.
Timeline
FAQ
Does this affect my Elixir or Phoenix server?
Not for incoming connections - the advisory explicitly says servers are not affected. The risk is outbound connections your application makes as a client: HTTPS API calls, webhooks, connections to databases, message brokers or other services over TLS 1.2.
I use TLS 1.3. Am I safe?
Connections that actually negotiate TLS 1.3 are not affected. But an on-path attacker can offer TLS 1.2 if the client allows it. That is why the vendor recommends disabling TLS 1.2 on the client entirely, not just preferring 1.3.
How do I find out which OTP version I run?
The exact version is in the OTP_VERSION file of the Erlang installation, and application:get_key(ssl, vsn) returns the ssl version. The commands are in the How to tell if you were compromised section. For container images and releases that bundle the runtime, check the version inside the image.
Sources
Spotted a mistake? Let us know and we will correct it openly.