Erlang/OTP TLS flaw lets attackers impersonate servers

Erlang/OTP TLS flaw lets attackers impersonate servers

Add CyberWorldOpsto your preferred sources on Google
Erlang/OTP TLS flaw lets attackers impersonate servers
Vulnerabilities

Illustrative image generated with AI

Erlang/OTP applications can accept a fake server as authenticated even when configured to verify its identity, allowing an attacker positioned between client and server to read and alter traffic. The Erlang/OTP maintainers disclosed the flaw, CVE-2026-124286, in a November 24, 2026 advisory, with a critical severity score of 9.1 out of 10.

The vulnerability affects applications acting as clients using TLS 1.2, a version of the protocol that protects network connections. The default client configuration is vulnerable because it offers TLS 1.2 and affected key exchanges—the methods used to establish encryption keys. Servers and TLS 1.3 connections are unaffected by this particular flaw.

An attacker must be able to intercept and answer the client's connection. Even with full server authentication enabled, the affected client can complete the connection without receiving a certificate proving the server's identity.

How the authentication check fails

During the TLS handshake, the initial exchange that establishes a protected connection, a malicious server can omit the Certificate message and send an unsigned ServerKeyExchange message. The latter carries information used to establish encryption keys but lacks the signature needed to authenticate it.

The maintainers give ECDHE_RSA as an example of an affected cipher suite, a combination of cryptographic algorithms. The attacker effectively presents an anonymous key exchange as one that authenticates the server, and the client accepts it.

For example, the advisory shows that a client configured with {verify, verify_peer}, trusted certificate authorities and the server name www.example.com can still accept the impersonator. The attacker chooses the cipher suite, so the type of key in the legitimate server's certificate does not prevent exploitation. Once connected, the attacker can read and modify all traffic on that connection.

Cipher suites that do not use a ServerKeyExchange message—RSA key transport, ECDH_RSA and ECDH_ECDSA—are unaffected. The advisory classifies the weakness as improper verification of a cryptographic signature and credits Philip Calvin with finding and responsibly reporting it.

Fixed releases and the release-track omission

The maintainers say the vulnerability was introduced in OTP 17.0. The affected ranges begin at OTP 17.0 and the ssl application's version 5.3.4, with fixes listed for these release tracks:

  • OTP 29: 29.0.3; ssl 11.7.3.
  • OTP 28: 28.5.0.9; ssl 11.6.0.8.
  • OTP 27: 27.3.4.14; ssl 11.2.12.10.

The advisory treats the listed patched versions and later versions under OTP's version-comparison rules as unaffected. It also explains that the fix had already reached OTP 29 and OTP 27 before disclosure as hardening for a different scenario, but was accidentally omitted from the OTP 28 track.

The maintainers warn against treating releases before OTP 17 as a suitable alternative: those versions have been unsupported for years and probably contain other vulnerabilities.

Why switching TLS versions needs care

For CVE-2026-124286, the maintainers recommend upgrading or restricting clients to TLS 1.3 with {versions, ['tlsv1.3']}. However, organizations considering that workaround need to account for a separate, previously disclosed TLS 1.3 authentication flaw in older releases.

In its September 22 advisory for CVE-2026-89422, the project described a critical, 9.3-rated flaw introduced in OTP 22.2 and ssl 9.5. A malicious server could send an unsolicited pre-shared-key extension—a signal normally associated with previously established key material—and make a client skip certificate and hostname validation. The attacker needed no certificate, private key or prior session.

That earlier flaw affected default TLS 1.3 clients, including HTTPS connections through httpc, database and messaging client libraries, and TLS distribution clients. Manual and automatic session-ticket modes were also affected when the client had no ticket to offer, such as on a first connection. The listed fixes were OTP 29.1.1, 28.5.0.7 and 27.3.4.18, and ssl 11.7.7, 11.6.0.6 and 11.2.12.13. Its application-visible signs were ssl:peercert/1 returning {error, no_peercert} despite peer verification, and connection information reporting session resumption when the client had never held a ticket.

Administrators should therefore select an updated release in their track that addresses both vulnerabilities before relying on TLS 1.3 as the workaround for the newly disclosed issue.

For clients that must retain TLS 1.2 and cannot immediately take the new fix, the maintainers offer one last-resort option: allow only static RSA key transport suites. They discourage it because it lacks forward secrecy—the protection that keeps past sessions confidential if a long-term key is later compromised—and many servers no longer accept those suites, causing connections to fail. Their preferred action is to install a patched release or use TLS 1.3 on a release protected against the earlier TLS 1.3 flaw.

Read next

Sources

CVEs covered in this article

Back to home

Latest Cybersecurity News

All cybersecurity news →