BlackTree Security · Infrastructure · Automation · AI

Erlang TLS Flaw: Encryption Without Server Authentication

An Erlang application could ask its TLS client to verify the server, receive a successful connection and still have no proof of who was at the other end. The encryption worked. The server authentication did not.

That is the failure behind CVE-2026-124286, a critical vulnerability disclosed on 24 November 2026. Affected Erlang/OTP clients can accept a specially constructed TLS 1.2 handshake in which the server supplies no certificate. An attacker positioned on the connection path can consequently impersonate the intended server and read or alter the application traffic exchanged with the client.

The Erlang/OTP security advisory gives the issue a CVSS v4.0 score of 9.1. The Erlang Ecosystem Foundation’s CNA record also includes DTLS 1.2 clients. TLS 1.3 connections and Erlang/OTP operating solely in the TLS server role are outside the stated scope.

Why an encrypted connection can still be the wrong connection

TLS is expected to provide both confidentiality and an authenticated destination. Those properties answer different questions. Encryption protects the traffic exchanged with the endpoint that completed the handshake. Certificate verification establishes whether that endpoint is entitled to represent the service the client intended to contact.

This vulnerability breaks that second assurance. A malicious endpoint can complete an encrypted session with the client without presenting the certificate that should be required for the selected authenticated key exchange. The client then protects its traffic to an impostor.

Consider an application sending a bearer token to an API. If an attacker can intercept the connection and exploit this handshake failure, the token can be delivered to the attacker inside a newly negotiated encrypted session. Requests and responses crossing that session can also be observed or changed. The consequences depend on the data and privileges involved; the advisory does not describe a remote code execution vulnerability in the Erlang runtime.

The required network position matters. This is not a claim that any internet user can immediately impersonate every Erlang-backed service. The attacker must be able to interpose on the affected client’s connection, and the client must offer a susceptible key exchange.

Peer verification was enabled, but the checks were skipped

The finding is particularly serious because it bypasses an explicit security setting. Configuring {verify, verify_peer} does not protect an affected client against this path. The vendor’s example also includes a trusted certificate store and the intended server name.

According to the CNA’s technical description, the handshake can proceed when the server omits the Certificate message and provides an unsigned ServerKeyExchange. The implementation treats the missing signature as anonymous and accepts it without a public key, despite the negotiated exchange requiring certificate authentication.

The affected key exchanges are ecdhe_rsa, ecdhe_ecdsa, dhe_rsa and dhe_dss. The malicious server selects a susceptible cipher suite from those the client has offered. The key type in the legitimate server’s certificate does not remove this exposure.

Certificate path validation, the configured verification callback and hostname checking are bypassed. The CNA records that ssl:connect/3 can return {ok, Socket}, while a subsequent ssl:peercert/1 reports {error, no_peercert}. That is stronger evidence than a configuration review: the client can report a successful connection without having authenticated a certificate.

It would be too broad to say that every application remains silent. Applications can implement additional checks or logging. The established defect is that the TLS connection itself can succeed instead of rejecting the invalid handshake. A green connectivity check therefore does not demonstrate that server authentication worked.

Check outbound connections, including bundled runtimes

Assessment should follow the client role. An application might accept inbound TLS connections without being affected in that role, yet make outbound calls through an affected OTP client. A server inventory alone can miss that distinction.

Start with applications using Erlang/OTP’s ssl implementation to reach APIs, identity services, management endpoints or other dependencies. Establish which connections can negotiate TLS 1.2, or use DTLS 1.2, and which cipher suites are permitted. Merely enabling TLS 1.3 alongside TLS 1.2 leaves the vulnerable protocol path available.

Include deployment artefacts in that inventory. A container image, application release or vendor appliance may carry a runtime different from the one installed on the host. Treat those as separate versions to establish, rather than assuming a host update has repaired every running workload.

This does not establish that every product built with Erlang or Elixir is vulnerable in practice. Product-specific configuration, runtime versions and vendor fixes still need checking. For supplied software, ask the vendor which runtime the deployed build contains, whether it uses the affected client path and which update resolves it.

The corrected versions differ by release branch

The advisory traces the defect to OTP 17.0, corresponding to ssl 5.3.4. Its corrected releases are branch-specific:

OTP release track Corrected OTP release Matching corrected ssl version
OTP 27 27.3.4.14 11.2.12.10
OTP 28 28.5.0.9 11.6.0.8
OTP 29 29.0.3 11.7.3

These are the fixes identified for this vulnerability, not an instruction to downgrade a newer supported deployment to one of these releases. Apply the appropriate vendor-supported update containing the correction. Where a distributor backports security fixes, obtain its package-specific evidence rather than judging the package solely by an upstream version string.

The dates also deserve care. OTP 27.3.4.14 and OTP 29.0.3 were released on 2 July 2026. The vendor says hardening already present on those branches addressed this flaw, but was accidentally omitted from the OTP 28 track. OTP 28.5.0.9 arrived on 24 November, the public disclosure date. All three fixes were therefore not newly released together in November.

Use the project’s version ordering rules when matching a deployment to a corrected release. A fixed OTP 27 build does not make an arbitrary OTP 28 build safe simply because its major version is higher. Older deployments also need a supported upgrade path, rather than an assumption that a different branch’s fix covers them.

Workarounds have compatibility and security costs

Patching is the preferred response. Where an immediate update is impossible, the advisory describes restricting the client exclusively to TLS 1.3. Test that restriction against required services first: a dependency that supports only TLS 1.2 will no longer connect. Leaving TLS 1.2 as a fallback defeats this mitigation.

The other documented fallback is restricting TLS 1.2 to static RSA key transport. It is a last resort. Static RSA does not provide forward secrecy, and many servers no longer support it. A suite named ECDHE_RSA, or a server certificate containing an RSA key, is not the same thing as static RSA key transport.

Do not disable peer verification or hostname checks to restore connectivity. Those settings remain necessary after patching. Any temporary protocol or cipher restriction should have an owner, a tested compatibility assessment and a removal plan once the corrected runtime is deployed.

This is active impersonation, not retrospective decryption

The vulnerability allows an attacker to participate in a new connection as the supposed server. It does not, by itself, provide a way to decrypt a recording of an earlier legitimate session. Those are different attack mechanisms.

That distinction is not proof that all historical traffic was safe. An organisation investigating possible exposure still needs to consider whether an earlier connection could have been actively intercepted, what credentials crossed it and what independent evidence exists. Missing certificate errors are weak reassurance when the flaw prevents the expected validation from running.

The vendor and CNA records reviewed for this article do not establish exploitation in the wild or identify affected victims. The GitHub advisory credits Philip Calvin, account pnc, with finding and privately reporting the issue.

Close the change against the running service

A successful package installation is an intermediate step. Confirm that each affected service is actually running the corrected OTP and ssl components. Rebuilding an image without replacing its deployed containers, or updating the host while an application uses its own bundled runtime, can leave the original exposure in place.

Record the deployed build, release track and relevant library versions, then confirm that the service has loaded the update through its supported restart or upgrade procedure. Check replicas and recovery instances too. A version observed in a newly opened administrative shell need not describe a process that was already running.

Verification should cover rejection as well as successful connectivity. In a controlled test environment, confirm that invalid server authentication fails and that required services still connect under the intended protocol policy. Keep the original verification controls enabled.

The meaningful completion condition is a corrected running client that rejects an unauthenticated peer. An encrypted connection alone was never enough to prove that.

Sources and vulnerability record

Leave a Reply

Your email address will not be published. Required fields are marked *