CyberPeople

Critical Erlang/OTP Flaw Lets Attackers Impersonate TLS Servers and Intercept Traffic

Critical Erlang/OTP Flaw Lets Attackers Impersonate TLS Servers

CVE-2026-124286 (CVSS 9.1) in Erlang/OTP: a TLS 1.2 client accepts a handshake without a server certificate. Affected versions and how to protect yourself.

Erlang/OTP is the platform that underpins a huge swath of critical infrastructure: from Ericsson telecom equipment and RabbitMQ message queues to distributed databases and messaging systems. In late November 2026, its TLS implementation was found to contain a critical vulnerability, CVE-2026-124286, rated CVSS 9.1. The essence of the problem is simple and alarming: a TLS client that has been explicitly told to demand a certificate from the server can "silently" accept a handshake with no certificate at all. An attacker positioned on the traffic path can impersonate any server and read or modify all transmitted data. Here is how it works, who it affects, and how to protect yourself.

What happened

CVE-2026-124286 is described as improper verification of a cryptographic signature (CWE-347) in the ssl application of Erlang/OTP. It was publicly disclosed on 24 November 2026. Three people are credited with the discovery: researcher Philip Calvin, along with Jonatan Männchen and Ingela Anderton Andin, who work on TLS in the Erlang/OTP project itself. The official advisory was published as GHSA-7mff-v332-665j.

The key phrase from the vulnerability description deserves a careful read: "An Erlang/OTP TLS client configured with full server authentication completes a TLS 1.2 handshake when a malicious server sends no Certificate message and an unsigned ServerKeyExchange." In other words, a client that should have refused to connect to an "unknown" server instead treats the connection as fully authenticated.

The CVSS 4.0 score is 9.1 (Critical). The vector AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N means the attack is possible over the network, with no authentication and no user interaction, but the attacker must be positioned on the connection path (an on-path, or "man-in-the-middle," position). On success, the attacker gains full control over the confidentiality and integrity of the session.

How the authentication bypass works

To understand the flaw, it helps to recall how a normal TLS 1.2 handshake with an ephemeral key exchange should look. The client sends a ClientHello and the server responds with a ServerHello selecting a cipher suite. Next, for exchanges such as ECDHE or DHE, the server sends a ServerKeyExchange — its ephemeral key parameters, signed with a long-term key — along with a Certificate message carrying its certificate. The client verifies the signature in the ServerKeyExchange using the public key from the certificate. If there is no certificate or the signature does not match, the connection must be aborted.

That is exactly where the defect in the ssl_handshake module lies. The client's logic works as follows:

  1. The client receives a ServerKeyExchange from the server. The function ssl_handshake:decode_server_key/3 parses it and, if the server sent no Certificate and left the message unsigned, marks the signature algorithm as anon (anonymous key exchange).
  2. Next, ssl_handshake:verify_signature/5 is called. For the anon algorithm it returns true — "signature valid" — without requiring a public key, because there is none.
  3. Because the client does not enforce receipt of a certificate on this code path, the handshake completes successfully.

This works for the ecdhe_rsa, ecdhe_ecdsa, dhe_rsa, and dhe_dss key exchanges — provided the negotiated cipher suite was among those the client originally offered. Certificate path validation, the verify_fun callback, and hostname checking never run — even if the developer explicitly set the {verify, verify_peer} option.

Worst of all, the application has no idea anything is wrong. The ssl:connect/3 function returns {ok, Socket} — an ordinary success, with no indication that authentication never happened. For a developer, this means the verify_peer option, which the documentation promises will "demand and verify the server certificate," silently does nothing in this case. The flaw affects only the client side of TLS 1.2 and DTLS: TLS 1.3 clients and TLS servers are not affected.

Affected versions and what changed

Affected versions and what changed

The flaw has existed for a long time — since OTP 17.0, effectively 2014. Fixes have been released in three branches:

ComponentAffected versionsFixed in
Erlang/OTP17.0 – 27.3.4.1327.3.4.14
Erlang/OTP28.x – 28.5.0.828.5.0.9
Erlang/OTP29.x – 29.0.229.0.3
ssl (application)5.3.4 – 11.2.12.911.2.12.10
ssl (application)up to 11.6.0.711.6.0.8
ssl (application)up to 11.7.211.7.3

It is important to understand that both the ssl application and the OTP platform itself need updating, depending on how your installation is built. For containers based on official Erlang images, moving to a newer image that pulls in the patched ssl is usually enough. But on Linux distributions where Erlang ships as separate packages (erlang-ssl, erlang-base, etc.), both components should be checked.

Why this is critical: where Erlang/OTP lives

Erlang/OTP is not exotic — it is the workhorse of distributed systems. Many well-known products are built on it (and on its BEAM virtual machine): the RabbitMQ message broker, the document-oriented databases CouchDB and Riak, the XMPP servers ejabberd and MongooseIM, and part of the mobile telecom infrastructure. The Elixir language and its Phoenix web framework are worth a separate mention: they run on the same BEAM virtual machine and therefore also use the ssl application from OTP. The same libraries are used in embedded systems built on Nerves and in numerous microservices written in Elixir.

The key nuance is that the flaw affects the client side. At risk is not a server accepting inbound connections, but any BEAM application that establishes outbound TLS 1.2 connections: RabbitMQ pulling data from a remote node or pushing it through federation, an Elixir microservice calling a third-party API, a system syncing with remote storage. These "invisible" service-to-service connections are exactly the ones most often missed by inventory and patch management.

An additional risk factor is hiddenness. Many teams do not even realize that Erlang/OTP runs under the hood of their RabbitMQ or CouchDB: these products ship their own copy of the virtual machine, which does not appear in the installed package list as a separate "Erlang language." A standard scanner that checks package versions may simply not see the problem.

How to check whether you are vulnerable

How to check whether you are vulnerable

A practical way to understand your situation is to look at the actual OTP and ssl application versions. If you have access to an Erlang environment, this is a one-liner:

erl -eval 'io:format("OTP: ~s~n", [erlang:system_info(otp_release)]), io:format("ssl: ~s~n", [application:get_key(ssl, vsn)]), halt().' -noshell

It is also worth reviewing which outbound connections your services make. If an Erlang/Elixir system reaches out over TLS 1.2 — to a payment gateway, a mail server, or an external API — that is the prime candidate for attention.

Attack scenario: man in the middle

The attack belongs to the adversary-in-the-middle (AitM) class and requires the attacker to be on the traffic path between the client and the legitimate server. This can be achieved through router compromise, a malicious Wi-Fi access point, BGP hijacking, or access to a provider's network equipment. The scenario is then straightforward:

  1. A vulnerable Erlang client tries to connect to a legitimate server.
  2. The attacker intercepts the connection and answers on behalf of the server, sending an unsigned ServerKeyExchange with no Certificate message.
  3. The client, despite the verify_peer setting, accepts the handshake as successful and fully authenticated.
  4. The attacker then reads and modifies all session data — credentials, tokens, sensitive information — while the legitimate application believes it is talking to the real server.

At the time of publication, no in-the-wild exploitation has been confirmed, no public proof-of-concept exists, and the flaw is absent from the CISA KEV catalog. However, the low attack complexity and high impact make it a high-priority patch, especially for services that use Erlang/OTP for outbound internet connections.

How to protect yourself

How to protect yourself

The primary recommendation is to upgrade Erlang/OTP to the fixed versions: 27.3.4.14, 28.5.0.9, or 29.0.3 (correspondingly ssl to 11.2.12.10, 11.6.0.8, or 11.7.3). That is the only complete solution.

If an immediate upgrade is not possible, there are two temporary measures:

  • Switch to TLS 1.3. The vulnerable code path exists only for TLS 1.2/DTLS. If the client is restricted to {versions, ['tlsv1.3']}, the exposure disappears entirely. This is the best option, but it only works where remote servers support TLS 1.3.
  • Keep only static RSA. If TLS 1.2 is required, cipher suites can be limited to static RSA exchanges, which have no ServerKeyExchange message. But this is a last resort: static RSA provides no forward secrecy, and many modern servers no longer support these suites — handshakes will start failing.

In addition, an inventory should be carried out: find all applications using Erlang/OTP ssl for outbound TLS 1.2 connections with ecdhe_rsa, ecdhe_ecdsa, dhe_rsa, or dhe_dss key exchanges, and prioritize their update. After patching, confirm that the actual OTP and ssl versions match or exceed the fixed ones rather than relying on the package manager alone.

Context: a series of Erlang/OTP flaws

CVE-2026-124286 is not an isolated case. Over the past year, at least four critical issues have been fixed in Erlang/OTP: CVE-2025-32433 (SSH, CVSS 10.0), CVE-2022-37026 (CVSS 9.8), CVE-2026-55953 (CVSS 9.1), and CVE-2026-89422 (CVSS 9.3). The latter is, incidentally, a close "relative" of ours: it is a "Key Exchange without Entity Authentication" flaw that lets the responder on a TLS 1.3 connection impersonate the legitimate server. So an entire pair of problems has been disclosed — one for TLS 1.2, another for TLS 1.3.

The story of CVE-2025-32433 is also telling: after its public disclosure, that SSH vulnerability began to be actively exploited in attacks on healthcare, agriculture, media and entertainment, and high-tech sectors in the U.S., Canada, Brazil, India, and Australia — attackers delivered reverse shells. It is a reminder that "just" publishing a fix does not end the story: attackers watch these advisories and quickly turn them into tools.

Conclusion

CVE-2026-124286 is a reminder of a fundamental cybersecurity truth: even mature, decades-polished libraries can contain flaws that neutralize basic protections. Here, a client ordered to demand a certificate quietly accepts its absence — and does not even tell the application about it.

For Ukrainian teams using RabbitMQ, CouchDB, Elixir/Phoenix, or anything else on the BEAM, the practical conclusion is one: check your Erlang/OTP and ssl application versions, upgrade to the patched releases, and audit outbound TLS 1.2 connections. That is cheaper than investigating an incident after an attacker has already intercepted traffic while posing as a legitimate server.

Stay ahead of threats

Weekly cybersecurity intelligence in your inbox. No spam.

CyberPeople contributor