RC RANDOM CHAOS

Erlang TLS client trusts unsigned handshakes

CVE-2026-124286 lets a malicious server complete a TLS 1.2 handshake with an Erlang/OTP client using no certificate and an unsigned key exchange.

· 3 min read
Erlang TLS client trusts unsigned handshakes

An affected Erlang/OTP TLS client configured for full server authentication will complete a TLS 1.2 handshake with a server that sends no certificate and an unsigned key exchange. That is CVE-2026-124286, rated CVSS 9.1, reported by security researcher Philip Calvin and disclosed by the OTP maintainers last week.

The mechanism is a confusion between two cipher suites that share wire structure. In a normal ECDHE_RSA handshake the server sends a Certificate message carrying its RSA public key, then a ServerKeyExchange holding the ephemeral ECDH parameters signed with that key. The client verifies the signature against the certificate, and that signature is what binds the ephemeral key to the server’s identity. Anonymous ECDH uses the same ServerKeyExchange message but omits the certificate and the signature, because it makes no identity claim.

Affected clients accept the anonymous version while believing they negotiated the authenticated one. A malicious server offers an ECDHE_RSA suite, then sends no Certificate message and an unsigned ServerKeyExchange. The Erlang client does not reject the missing certificate or the absent signature, completes the handshake, and marks the connection authenticated. An attacker in an adversary-in-the-middle position can therefore impersonate a legitimate server to an affected client and read and modify all traffic, with full server authentication still switched on.

The flaw is in the client. Erlang applications acting as TLS clients are the exposure; server-side code is not. Anything that opens outbound TLS from Erlang/OTP, including HTTP clients, database drivers, and message queue connectors, falls in scope, and that set is usually larger than a quick guess suggests.

Affected builds are OTP 17.0 and later, fixed in 29.0.3, 28.5.0.9, and 27.3.4.14, and ssl 5.3.4 and later, fixed in 11.7.3, 11.6.0.8, and 11.2.12.10.

TLS 1.3 is not affected; its handshake has no separate unsigned ServerKeyExchange to abuse, so restricting a client to TLS 1.3 only closes the hole. The maintainers describe a last-resort option for clients stuck on TLS 1.2: offer only static RSA key transport suites, which carry no ServerKeyExchange and so cannot be hit by the unsigned-SKX bypass. They discourage it. Static RSA gives up forward secrecy, and many servers have dropped those suites, which will fail the handshake outright. Patch, or pin to TLS 1.3.

Over the last year the maintainers have addressed four critical Erlang/OTP flaws: CVE-2025-32433 (CVSS 10.0), CVE-2022-37026 (9.8), CVE-2026-55953 (9.1), and CVE-2026-89422 (9.3). CVE-2025-32433 is the one worth remembering when deciding how fast to move: after public disclosure it was exploited in the wild against healthcare, agriculture, media and entertainment, and high technology targets across the US, Canada, Brazil, India, and Australia, delivering reverse shells. A client-side TLS bypass is quieter than a reverse shell, but an adversary-in-the-middle position that survives full authentication is the kind of primitive that gets folded into campaigns like that.

Share

Keep Reading

Latest on the Wire

Full wire →

New signal daily · RSS

Stay in the loop

New writing delivered when it's ready. No schedule, no spam.