Critical Erlang/OTP Flaw Allows TLS Server Impersonation and Traffic Interception
A critical vulnerability in Erlang/OTP, CVE-2026-124286, enables attackers to impersonate TLS servers and intercept or modify encrypted traffic, impacting applications making outbound TLS connections.

A critical flaw within the Erlang/OTP platform, identified as CVE-2026-124286 and carrying a CVSS score of 9.1, has been disclosed, posing a significant risk to secure communications. This vulnerability allows attackers to impersonate trusted TLS servers, enabling them to intercept or even modify traffic that is supposed to be protected by encryption. The issue specifically affects TLS 1.2 clients, even those configured with server identity verification, though TLS 1.3 connections remain unaffected.
The vulnerability exploits a weakness in the TLS handshake process. Normally, clients use server certificates to verify the identity of the intended service before establishing an encrypted connection. However, on affected Erlang/OTP clients, certain TLS 1.2 handshakes can complete without a server certificate being presented, despite the client being configured to require server authentication. While the connection is still encrypted, the client has no assurance of the server's true identity, creating a critical security gap.
An attacker positioned in the network path between the client and the legitimate server can exploit this gap to impersonate the intended service. This impersonation allows the attacker to read or alter data transmitted over the connection, potentially compromising sensitive information such as API tokens, requests, and responses. It is important to note that this flaw does not enable the decryption of previously recorded traffic; rather, it facilitates active interception and manipulation of ongoing communications by impersonating the server.
The discovery of this vulnerability is credited to Philip Calvin, who privately reported the issue to the Erlang/OTP maintainers. The default client configuration is particularly exposed because it supports TLS 1.2 and certain key exchange options that are susceptible to this flaw. While the vulnerability does not affect Erlang/OTP when it functions as a TLS server, applications that accept inbound connections can still be vulnerable if they also make outbound connections as clients, which is a common scenario.
The official Erlang/OTP security advisory traces the vulnerability's origin back to OTP 17.0. Patches are now available for several versions, including OTP 29.0.3, 28.5.0.9, and 27.3.4.14. The corresponding fixed versions for the bundled SSL application are 11.7.3, 11.6.0.8, and 11.2.12.10. Maintainers noted that previous security hardening measures had already addressed this issue in OTP 29 and 27 branches, but the fix was inadvertently omitted from the OTP 28 branch.
Organizations are strongly advised to check their Erlang/OTP versions in production, including those embedded within container images and vendor packages. Priority should be given to applications that establish outbound TLS connections to APIs, partner services, or internal systems. After updating, it is crucial to confirm that the patched runtime is in use. While maintaining peer verification is important, this setting alone does not protect unpatched clients from this specific flaw.
For environments where an immediate upgrade is not feasible, the project recommends restricting affected clients to use only TLS 1.3. However, this change requires careful testing, as clients will be unable to connect to endpoints that exclusively support TLS 1.2. As a last resort for clients that cannot move away from TLS 1.2, the advisory mentions static RSA, but this method lacks forward secrecy and is increasingly unsupported by servers. Therefore, patching remains the most effective and recommended solution to mitigate this critical vulnerability.