CVE-2026-124286: TLS 1.2 Client Completes Handshake Without a Server Certificate

Published Nov 24, 2026
·
Updated

Summary

Improper Verification of Cryptographic Signature vulnerability in Erlang OTP ssl (sslhandshake module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.

When a server sends no Certificate message and a ServerKeyExchange without a signature, sslhandshake:decodeserverkey/3 reports the signature algorithm as anon, and sslhandshake:verifysignature/5 returns true for anon without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the ecdhersa, ecdheecdsa, dhersa and dhedss key exchanges with a cipher suite the client offered. Certificate path validation, verifyfun and the hostname check do not run, and ssl:connect/3 returns {ok, Socket} with {verify, verifypeer} set. The TLS 1.3 client is not affected.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.9, and OTP 29.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3.

Details

1. Signature decoding. sslhandshake:decodeserverkey/3 splits the ServerKeyExchange body into the key exchange parameters and a signature. The internal decserverkeysignature/3 maps an empty remainder, a zero-length signature, and the TLS 1.2 anonymous signature algorithm with an empty signature to the signature algorithm anon. It does this for every key exchange algorithm, not only for the anonymous ones.

2. Signature verification. In the certify state the client calls sslhandshake:verifyserverkey/5 for the non-anonymous key exchanges. No Certificate message arrived, so the stored public key is undefined. sslhandshake:verifysignature/5 has a clause that returns true for the anon signature algorithm with any key, and that clause matches.

3. Handshake completion. The client does not check that it received a certificate before it handles ServerHelloDone. It derives the master secret from the unauthenticated (EC)DH parameters and sends ClientKeyExchange, ChangeCipherSpec and Finished. The attacker holds the (EC)DH private key and completes the handshake. ssl:connect/3 returns {ok, Socket}, and ssl:peercert/1 returns {error, nopeercert} on that socket.

Proof of concept

1. Start a TCP server that answers a TLS 1.2 ClientHello with a ServerHello that selects an offered ECDHERSA suite (for example TLSECDHERSAWITHAES128GCMSHA256), then a ServerKeyExchange with x25519 parameters and no signature, then ServerHelloDone. Send no Certificate message. The UnauthenticatedECDH test of the BoringSSL test runner (BoGo) provides such a server. 2. Connect with ssl:connect/3 and the options {verify, verifypeer}, {cacerts, publickey:cacertsget()}, {servernameindication, "www.example.com"} and {customizehostnamecheck, [{matchfun, publickey:pkixverifyhostnamematchfun(https)}]}. 3. On the server, derive the session keys from its own ECDH key pair and the client's ClientKeyExchange, then send ChangeCipherSpec and Finished. 4. ssl:connect/3 returns {ok, Socket}, and the server decrypts the application data that the client sends. A fixed client aborts with a fatal alert after step 1.

Impact

An on-path attacker can impersonate any server to an affected client, then read and modify all application data on the connection. Certificate path validation, verifyfun and the hostname check do not run.

Workarounds

Restrict TLS client connections to TLS 1.3 by setting versions to ['tlsv1.3'] in the client's ssl options.

If a client must use TLS 1.2, offer only the static RSA key exchange cipher suites. These suites have no ServerKeyExchange message. They provide no forward secrecy, and many servers do not accept them.

erlang RsaOnly = ssl:filterciphersuites( ssl:ciphersuites(all, 'tlsv1.2'), [{keyexchange, fun(rsa) -> true; () -> false end}] ), Opts = [ {verify, verifypeer}, {cacerts, publickey:cacertsget()}, {versions, ['tlsv1.2']}, {ciphers, RsaOnly}, {servernameindication, "www.example.com"}, {customizehostnamecheck, [ {matchfun, publickey:pkixverifyhostnamematchfun(https)} ]} ].

Configurations

The vulnerability affects clients whose connection can use TLS 1.2 or DTLS 1.2. The default ssl:connect options allow TLS 1.2. Clients restricted to TLS 1.3 are not affected. Cipher suites that do not use a ServerKeyExchange message (the rsa, ecdhrsa and ecdhecdsa key exchanges) are not affected. Servers are not affected. Exploitation requires an on-path (adversary-in-the-middle) attacker between the client and the intended server.

Other sources

Improper Verification of Cryptographic Signature vulnerability in Erlang OTP ssl (sslhandshake module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.

When a server sends no Certificate message and a ServerKeyExchange without a signature, sslhandshake:decodeserverkey/3 reports the signature algorithm as anon, and sslhandshake:verifysignature/5 returns true for anon without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the ecdhersa, ecdheecdsa, dhersa and dhedss key exchanges with a cipher suite the client offered. Certificate path validation, verifyfun and the hostname check do not run, and ssl:connect/3 returns {ok, Socket} with {verify, verifypeer} set. The TLS 1.3 client is not affected.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.9, and OTP 29.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3.

— MITRE

Affected Software

2 affected components
Ericsson Erlang/OTP>=17.0<27.3.4.14, >=28.0<28.5.0.9, >=29.0<29.0.3
Ericsson Erlang/OTP SSL>=5.3.4<11.2.12.10, >=11.6.0<11.6.0.8, >=11.7.0<11.7.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in 27.3.4.14
  2. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in 28.5.0.9
  3. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in 29.0.3
  4. Configuration

    Restrict TLS client connections to TLS 1.3 by setting versions to ['tlsv1.3'] in the client's ssl options.

    Erlang/OTP ssl client versions = ['tlsv1.3']
  5. Configuration

    If the client must use TLS 1.2, set ciphers to only static RSA key exchange suites, for example by filtering ssl:cipher_suites(all, 'tlsv1.2') with [{key_exchange, fun(rsa) -> true; (_) -> false end}].

    Erlang/OTP ssl client ciphers = TLS 1.2 cipher suites filtered to key exchange rsa only

Event History

Nov 24, 2026
CVE Published
via MITRE·03:12 PM
Data Sourced
via MITRE·03:12 PM
DescriptionWeakness
Data Sourced
via OSV·03:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which client connections are exposed?

Erlang/OTP TLS 1.2 and DTLS clients using the affected ssl_handshake implementation are exposed when they offer an ecdhe_rsa, ecdhe_ecdsa, dhe_rsa, or dhe_dss cipher suite. TLS 1.3 clients are not affected.

2

What does an attacker need to exploit this issue?

The attacker must be on the network path between the client and server and able to impersonate the server during the handshake. They send no Certificate message and provide an unsigned ServerKeyExchange for a key exchange and cipher suite offered by the client.

3

Does verify_peer, hostname verification, or a custom verify_fun prevent exploitation?

No. The affected client can complete the handshake and return {ok, Socket} even with {verify, verify_peer} configured, because certificate path validation, verify_fun, and hostname checks do not run.

4

Which releases contain fixes?

Fixed OTP releases are 27.3.4.14, 28.5.0.9, and 29.0.3. The corresponding fixed ssl releases are 11.2.12.10, 11.6.0.8, and 11.7.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203