Erlang/OTP TLS clients accept fake servers in a CVSS 9.1 flaw: update to 29.0.3, 28.5.0.9 or 27.3.4.14
CVE-2026-124286 lets a man-in-the-middle impersonate any TLS 1.2 server to an Erlang/OTP client, even with verify_peer on. Patched OTP releases are out.

TL;DR
- CVE-2026-124286 (CVSS 4.0 score 9.1, critical) lets an Erlang/OTP TLS client finish a TLS 1.2 handshake when the server sends no certificate [1].
- A man-in-the-middle can impersonate any server and read or change traffic, and the default client configuration is affected [1].
- Fixed in OTP 29.0.3, 28.5.0.9 and 27.3.4.14 (ssl 11.7.3, 11.6.0.8, 11.2.12.10); TLS 1.3 and servers are not affected [1].
The Erlang/OTP project has disclosed CVE-2026-124286, a critical flaw in its TLS client with a CVSS 4.0 score of 9.1 [1]. An Erlang/OTP TLS client that is set up for full server authentication still completes a TLS 1.2 handshake, for example with an ECDHE_RSA cipher suite, when a malicious server sends no Certificate message and an unsigned ServerKeyExchange [1]. In effect, anonymous ECDH is accepted while it is presented as an authenticated suite [1].
Why it matters
An attacker in a man-in-the-middle position can impersonate any TLS server to an affected client and read and modify all of its traffic [1]. This holds even when the client uses verify_peer with system CA certificates and server name indication [1]. The attacker picks the cipher suite, so the key type in the real server’s certificate makes no difference [1].
Any client that offers TLS 1.2 together with one of the affected key exchanges is vulnerable, and that includes the default client configuration [1]. Services built on Erlang/OTP that call external HTTPS APIs, databases or other TLS endpoints should check which OTP release they run.
What is and is not affected
- TLS 1.3 connections are not affected [1].
- Cipher suites that do not use a ServerKeyExchange (RSA key transport, ECDH_RSA, ECDH_ECDSA) are not affected [1].
- Servers are not affected; the bug is on the client side [1].
The advisory lists OTP 17.0 and later, and the ssl application 5.3.4 and later, as vulnerable until the patched versions [1]. The project says the issue had already been fixed on the OTP 29 and OTP 27 tracks as a hardening change for a different scenario, but that fix was accidentally left out of the OTP 28 track [1]. The flaw was reported by Philip Calvin [1].
Workarounds
The recommended workaround is to restrict clients to TLS 1.3 with {versions, ['tlsv1.3']} [1]. As a last resort, a client that must stay on TLS 1.2 can offer only static RSA key transport suites, but the project does not recommend this: it gives no forward secrecy and many servers no longer accept it, so handshakes may fail [1].
What builders can do now
Sources
Written and checked by AI from the sources below
Fact-checked by gpt-6.1-sol on · Editorial policy



