Skip to content
Hacker Posts
VulnerabilityCVE-2026-124286

Erlang/OTP TLS clients accept servers with no cert (CVE-2026-124286)

CVE-2026-124286: an Erlang/OTP TLS 1.2 client completes the handshake without a server certificate, letting a MITM impersonate any server even with verify_peer. Patched; TLS 1.3 unaffected.

Hacker Posts DeskPublished 3 min read

An Erlang/OTP TLS client will complete a TLS 1.2 handshake without ever receiving a server certificate, letting an adversary-in-the-middle impersonate any server — read and modify all traffic — even when the client is configured for full server authentication (verify_peer). Tracked as CVE-2026-124286 / GHSA-7mff-v332-665j, CVSS v4 9.1. Servers are not affected, and TLS 1.3 is not affected.

The primary source is the Erlang/OTP GitHub Security Advisory; it is corroborated by reporting at The Hacker News. Security researcher Philip Calvin is credited with the discovery.

What the bug does

In a TLS 1.2 handshake, a malicious server sends no Certificate message and an unsigned ServerKeyExchange — anonymous ECDH dressed up as an authenticated suite such as ECDHE_RSA. An affected client accepts the connection as authenticated anyway. Because the attacker chooses the cipher suite, the key type in the real server's certificate is irrelevant. The result is a clean man-in-the-middle against any Erlang/Elixir service acting as a TLS client — API callers, database drivers, outbound webhooks — regardless of verify_peer.

Affected and fixed versions

Per the advisory:

  • Affected: OTP >= 17.0; the ssl application >= 5.3.4.
  • Patched (OTP): 29.0.3, 28.5.0.9, 27.3.4.14.
  • Patched (ssl): 11.7.3, 11.6.0.8, 11.2.12.10.

Only Erlang applications acting as TLS clients are affected. TLS 1.3 handshakes, and suites that carry no ServerKeyExchange (RSA key transport, ECDH_RSA, ECDH_ECDSA), are not affected.

Exploitation status

The advisory does not report in-the-wild exploitation of CVE-2026-124286. Exploitation needs an active MITM position, which raises the bar, but the payoff — silent decryption of traffic a client believes is authenticated — is high.

Action checklist

  1. Upgrade OTP to 29.0.3, 28.5.0.9, or 27.3.4.14 (or the matching ssl releases) from the OTP releases.
  2. If you can't patch now, restrict TLS clients to TLS 1.3 only, e.g. {versions, ['tlsv1.3']}. The advisory names this as the primary workaround.
  3. Inventory your clients, not just servers: any Elixir/Erlang code calling out over TLS (Finch, Mint, hackney, epgsql, AMQP clients) inherits this.
  4. Avoid the static-RSA fallback. The advisory lists it only as a discouraged last resort — it provides no forward secrecy and many servers no longer accept it.

Context

This is the second Erlang/OTP-ecosystem flaw to surface this week, after the hex.pm registry breach. It also rhymes with CVE-2025-32433, the SSH pre-auth RCE that was exploited in the wild earlier — the OTP stack's crypto and transport code is load-bearing for a lot of infrastructure that rarely gets a second look. A TLS client that authenticates nothing is the quiet kind of bug: everything keeps working, the handshake succeeds, and the only observable difference is that an attacker is now sitting in the middle.