Back to Articles
critical CVE-2026-124286

CRITICAL: Erlang/OTP CVE-2026-124286 Lets Attackers Impersonate TLS Servers

A CVSS 9.1 flaw in the Erlang/OTP ssl application lets an attacker in the middle complete a TLS 1.2 handshake without presenting any certificate, defeating full server verification in RabbitMQ, ejabberd, Elixir apps and other Erlang clients. Fixes are out in OTP 29.0.3, 28.5.0.9 and 27.3.4.14.

By Danny Mercer, CISSP — Lead Security Analyst • Nov 30, 2026
Is your business exposed? Our McKinney-based security team can assess your risk for free.
Share:

There is a special kind of dread reserved for bugs that live in the plumbing. Nobody wakes up thinking about the TLS client buried inside their message broker or their chat server, and that is exactly why a flaw like this one deserves your attention this week.

The Erlang/OTP project disclosed CVE-2026-124286 on November 24, a critical vulnerability in the TLS client implementation of the OTP ssl application. It carries a CVSS score of 9.1, and the short version is ugly. An attacker sitting between an Erlang client and the server it thinks it is talking to can complete a TLS 1.2 handshake without ever presenting a certificate. The client, even one explicitly configured to verify the server, shrugs and treats the connection as authenticated. From there the attacker can read and modify everything that crosses the wire.

What Actually Breaks

To understand why this is so bad, it helps to remember what a TLS 1.2 handshake is supposed to prove. When a client negotiates an ephemeral key exchange suite such as ECDHE_RSA, the server sends its certificate, then sends a ServerKeyExchange message containing its ephemeral public key, signed with the private key that matches that certificate. The signature is the whole point. It ties the fresh session key to an identity that a trusted certificate authority vouched for.

According to the advisory published by the Erlang/OTP maintainers under GHSA-7mff-v332-665j, an affected client configured with full server authentication will finish the handshake for one of those authenticated suites when a malicious server simply skips the Certificate message and sends an unsigned ServerKeyExchange. In plain terms, the attacker dresses up anonymous ECDH as an authenticated cipher suite and the client never notices that the identity check was skipped entirely. There is no forged certificate, no stolen CA key, no clever collision. The attacker just leaves the proof out and the client accepts the empty envelope.

The maintainers were explicit that this hits the configuration everyone is told to use. Their own example is a client with verify set to verify_peer, the system CA bundle loaded through public_key:cacerts_get(), and server name indication set. That is textbook secure configuration, and it is vulnerable. The attacker also gets to choose the cipher suite, so it does not matter what type of key sits in the real server's certificate. Any client that offers TLS 1.2 along with one of the affected key exchanges is exposed, and the advisory notes that the default client configuration does exactly that.

Security researcher Philip Calvin is credited with finding and reporting the flaw.

Affected Versions and Fixes

The bug reaches back a long way. The advisory lists every OTP release from 17.0 onward as affected, which corresponds to ssl application version 5.3.4 and later. OTP 17.0 shipped in 2014, so if you have an Erlang runtime anywhere in your environment that has not been touched in the last week, assume it is vulnerable.

Fixes landed in three supported branches. OTP 29.0.3 carries ssl 11.7.3, OTP 28.5.0.9 carries ssl 11.6.0.8, and OTP 27.3.4.14 carries ssl 11.2.12.10. Anything older than OTP 27 is out of luck and needs a real upgrade rather than a patch.

TLS 1.3 connections are not affected, because the protocol was redesigned so that the server signs the full handshake transcript and there is no separate ServerKeyExchange to tamper with. Cipher suites that never use a ServerKeyExchange at all, namely RSA key transport, ECDH_RSA and ECDH_ECDSA, are also unaffected. Erlang servers are not affected either. This is strictly a client side problem, which is both good news and bad news, because client side TLS is exactly the code that administrators forget exists.

Who Should Be Worried

Here is where it gets interesting for anyone running real infrastructure. Erlang and its younger sibling Elixir quietly power a lot of systems that never advertise their runtime. RabbitMQ is the most obvious example in most business networks. ejabberd and other XMPP servers, CouchDB, EMQX and VerneMQ in the IoT messaging world, and a long tail of Elixir web applications built on Phoenix all sit on top of the same OTP ssl application.

The critical question is not whether you run Erlang, it is whether your Erlang applications make outbound TLS connections over networks an attacker could sit on. Think about a message broker shoveling or federating messages to a remote site, a broker or application fetching signing keys from an identity provider, an Elixir backend calling payment, email or partner APIs, a chat server talking to federated peers, or an IoT broker bridging to a cloud endpoint. Every one of those is a TLS client. If any of them runs on an unpatched OTP and negotiates TLS 1.2, an attacker who can intercept the traffic can impersonate the far end and harvest credentials, tokens and message payloads, or quietly rewrite responses.

That last part deserves emphasis. Interception is not just about reading data. If your application fetches a JSON Web Key Set from an identity provider over a connection an attacker can impersonate, the attacker can hand it their own keys and then mint tokens your application will trust. A broken TLS client can turn into a broken authentication system one hop downstream.

The attack does require an adversary in the middle position, and that is the main reason this sits at 9.1 instead of a perfect 10. In practice that position is less exotic than people like to think. Compromised routers, rogue Wi-Fi, ARP and DNS spoofing inside a flat network, poisoned BGP routes, malicious cloud neighbors and compromised upstream proxies all deliver it. In a data center or cloud VPC where an attacker has already landed on one host, getting in the path of internal service to service traffic is often a weekend project.

As of this writing there are no public reports of CVE-2026-124286 being exploited in the wild, and neither the advisory nor the coverage from The Hacker News mentions a public proof of concept. History says not to get comfortable. The last time a critical Erlang/OTP bug made headlines, CVE-2025-32433 in the OTP SSH server with a perfect 10.0 score, attackers were exploiting it shortly after disclosure against healthcare, agriculture, media and high technology targets across several countries. The bug here is conceptually simple, and the fix diff is public, so building an attacking server is not a heavy lift for anyone who already writes TLS tooling.

What To Do About It

The fix is the fix. Upgrade to OTP 29.0.3, 28.5.0.9 or 27.3.4.14, or to the matching ssl application release, and rebuild and redeploy anything that bundles its own runtime. That last point trips people up constantly. Many Erlang and Elixir applications ship as releases that embed their own copy of ERTS and the OTP libraries, so updating the system Erlang package on the host does nothing for an application that brought its own. You have to rebuild the release against a patched OTP and push it out. Container images are the same story. A Dockerfile that pinned an old official Erlang or Elixir base image will keep producing vulnerable images until someone bumps the tag.

For commercial products built on Erlang, such as packaged RabbitMQ distributions or appliances, watch your vendor's advisories and do not assume the product is covered until the vendor says which OTP version it ships. Run erl -noshell -eval 'io:format("sn",[erlang:system_info(otp_release)]), halt().' or check the ssl application version from a remote console to see what you are actually running, because the answer is frequently older than anyone expected.

If you cannot patch immediately, the maintainers' preferred workaround is to restrict affected clients to TLS 1.3 by setting the versions option to tlsv1.3 only. Most modern servers support it, and the bug simply does not exist there. Test it before you push it broadly, since some legacy partner endpoints and older internal services still only speak TLS 1.2. The advisory also describes a last resort option of restricting TLS 1.2 clients to static RSA key transport suites, which have no ServerKeyExchange and therefore nothing to forge. The maintainers themselves discourage this, since static RSA gives up forward secrecy and many servers no longer accept those suites at all. Treat it as a bandage for a specific stubborn integration, not a strategy.

Detection is harder than prevention here, because a successful attack looks like a normal TLS session from the client's point of view. Network sensors are your best bet. A TLS 1.2 handshake that negotiates an ECDHE or DHE suite but contains no server Certificate message is anomalous by definition and should never happen in legitimate traffic. Zeek ssl logs, Suricata TLS inspection and most commercial NDR products record whether a certificate was presented, so a hunting query for authenticated cipher suites with an empty certificate chain toward your Erlang hosts is a reasonable place to start. It is also worth reviewing egress paths for those hosts and asking whether any of that traffic crosses networks you do not fully control.

Finally, if a vulnerable client talked to an identity provider, a cloud API or a remote broker over an untrusted path during the exposure window, consider rotating the credentials it used. Patching closes the door. It does not tell you whether someone walked through it last month. To answer that, keep the firewall and proxy logs from the exposure window and have a compromise assessment check them for connections that should not be there.

The Bigger Picture

CVE-2026-124286 joins a growing list of critical Erlang/OTP bugs that includes CVE-2025-32433, CVE-2022-37026, CVE-2026-55953 and CVE-2026-89422. That is not an indictment of the project, which handled this disclosure cleanly and shipped fixes across three branches at once. It is a reminder that runtimes hiding underneath popular infrastructure deserve the same inventory and patch discipline as the operating system. If your asset inventory stops at the product name and never records the runtime underneath, you will keep getting surprised by bugs like this one. An authenticated vulnerability scan, one that signs in to each server, can list much of the software installed underneath your products and the versions it runs.

Drop everything and patch this now if you run RabbitMQ, ejabberd, EMQX, CouchDB or Elixir services that make outbound TLS connections. Everyone else should at least confirm they are not one of those people.

If an IT provider manages your systems

Erlang is a software runtime that hides inside products such as RabbitMQ, ejabberd, CouchDB and EMQX, so your provider may not know you have it. CVE-2026-124286 lets an attacker who can intercept your traffic pose as a trusted server. They can then read or change everything sent, including passwords.

  • Do any of our systems run on Erlang or Elixir, including products that bundle their own copy, and which OTP version do they use?
  • Have they been upgraded to OTP 29.0.3, 28.5.0.9 or 27.3.4.14, with bundled applications and container images rebuilt, or limited to TLS 1.3 until then?
  • If an unpatched system connected to outside services over untrusted networks, will you change the passwords and keys it used?

A good answer names each system, the OTP version it runs and the date it was fixed. If your provider can't tell you whether Erlang is in your environment at all, bring in co-managed IT support to find and patch it alongside them.

If you are an IT provider yourself, see how we partner with MSPs.

References

Happening right now?

Business email taken over, or a payment sent to the wrong account?

Call us now. The first hours matter most: your bank may still be able to recall the payment, and whoever is in the mailbox keeps access until it is locked down. We handle the lockout and help trace the payment.

Not an emergency? Get a free security assessment instead.