Secure Bulletin Navigating the cyber sea with knowledge
Home > Articolo > Critical Erlang/OTP Bug Lets Attackers Pose as Trusted Servers on TLS 1.2 Connections
Critical Erlang/OTP Bug Lets Attackers Pose as Trusted Servers on TLS 1.2 Connections
Read Time:3 Minute, 34 Second

A newly disclosed vulnerability in Erlang/OTP, the runtime that underpins widely used systems such as RabbitMQ, Ejabberd, and a long list of telecom and backend infrastructure, allows attackers to impersonate trusted servers during a TLS handshake and intercept traffic that should otherwise be protected by encryption.

The flaw, now tracked as CVE-2026-124286, carries a CVSS score of 9.1 and was disclosed on November 24, 2026. It affects Erlang/OTP acting as a TLS client — meaning any application built on the runtime that reaches out to APIs, partner services, or internal systems over an encrypted connection is a potential target, regardless of whether that same application also accepts inbound connections securely.

How the Impersonation Works

During a normal TLS handshake, a client is supposed to validate the server’s certificate before trusting the connection — confirming it is really talking to the service it intended to reach. On affected Erlang/OTP clients, certain TLS 1.2 handshakes can complete successfully even when no valid server certificate was presented, despite the client being explicitly configured to require one. The resulting connection is still encrypted, but the client has effectively skipped the step that proves who is on the other end.

That gap matters most to an attacker capable of positioning themselves on the network path between the client and its intended destination — a classic adversary-in-the-middle position. Such an attacker could stand up a server that impersonates the legitimate service, complete the flawed handshake, and then read or modify everything the client sends, including API tokens, authentication headers, and application data. Notably, this is not a way to retroactively decrypt previously captured traffic; it only affects new connections established while the vulnerable configuration is in place.

The bug is specific to TLS 1.2; connections negotiated over TLS 1.3 are not affected. It also only affects Erlang/OTP in its client role — when the same runtime is acting as a TLS server accepting inbound connections, the flaw does not apply.

An Old Bug, Freshly Exposed

According to the official security advisory, the underlying issue traces all the way back to OTP 17.0. Erlang maintainers say they had already addressed the root cause as part of earlier hardening work on the OTP 27 and 29 branches, but that fix was inadvertently never backported to OTP 28 — leaving a gap that researcher Philip Calvin identified and reported privately. The flaw is being compared to a 2025 OpenSSL server-authentication issue in terms of impact, though the two bugs affect different parts of the TLS connection process. It’s also distinct from, and should not be confused with, an earlier and unrelated Erlang/OTP SSH server vulnerability disclosed previously.

Patches and Interim Mitigations

Fixes are available now in OTP 29.0.3, 28.5.0.9, and 27.3.4.14, with the matching patched versions of the bundled SSL application being 11.7.3, 11.6.0.8, and 11.2.12.10 respectively. Organizations running Erlang/OTP — including inside container images and vendor-packaged products that may bundle it without that being obvious — are urged to check their versions as a priority, starting with any service that makes outbound TLS connections to third parties.

Recommended steps include:

  • Inventory all Erlang/OTP deployments, including those embedded in containers, appliances, and third-party software, not just directly-managed applications.
  • Prioritize patching for services that act as TLS clients making outbound calls to APIs, partner integrations, or internal microservices.
  • After upgrading, explicitly verify that the running service is actually using the new, patched runtime rather than a cached or previously built image.
  • Where an immediate upgrade isn’t possible, restrict affected clients to TLS 1.3 only — but test this change against all required endpoints first, since any service that only supports TLS 1.2 will become unreachable.
  • Avoid falling back to static RSA key exchange as a stopgap; the advisory lists it only as a last resort, since it lacks forward secrecy and many modern servers no longer accept it.

Simply leaving server-certificate verification “enabled” in configuration is not sufficient protection on its own — that setting is exactly what the vulnerability silently bypasses on unpatched clients. Patching, or restricting connections to TLS 1.3, are the only mitigations the Erlang/OTP project considers reliable.

Share: Twitter  |  Facebook  |  LinkedIn
Join the discussion

This is a blog in the Fediverse: you can find this article everywhere with @blog@securebulletin.com and every comment/answer will appear here.

If you want to comment on Critical Erlang/OTP Bug Lets Attackers Pose as Trusted Servers on TLS 1.2 Connections, use the discussion on Forum.

>> forum community

Comments

Leave a Reply