AZL-116120: CVE-2026-124286 affecting package erlang 26.2.5.21-8
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.
Affected Software
Event History
Frequently Asked Questions
Which Erlang TLS clients are exposed?
Clients using TLS 1.2 or DTLS are affected when they negotiate one of the offered ecdhe_rsa, ecdhe_ecdsa, dhe_rsa, or dhe_dss cipher suites. TLS 1.3 clients are not affected.
What does an attacker need to exploit this issue?
An attacker must be on the network path between the client and the intended server and be able to impersonate the server during the TLS or DTLS handshake. The attacker sends no Certificate message and sends an unsigned ServerKeyExchange.
Does verify_peer prevent exploitation?
No. The handshake can complete and ssl:connect/3 can return {ok, Socket} even when {verify, verify_peer} is set; certificate path validation, verify_fun, and hostname checks do not run.
What versions contain the fix?
The issue is fixed in OTP 27.3.4.14, OTP 28.5.0.9, and OTP 29.0.3. It affects OTP releases from 17.0 up to, but excluding, those fixed versions.