REDHAT-BUG-2583435: High severity Ericsson Erlang/OTP (ssl) vulnerability
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 connections are exposed to this issue?
TLS 1.2 and DTLS clients using the affected Erlang/OTP ssl implementation are exposed 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 it?
The attacker must be on the network path between the client and server and able to impersonate the server during the handshake. They can send no Certificate message and an unsigned ServerKeyExchange, causing the client to complete the connection.
Does verify_peer prevent exploitation?
No. The handshake can complete and ssl:connect/3 can return {ok, Socket} even when {verify, verify_peer} is configured. Certificate path validation, verify_fun, and hostname verification do not run in the affected handshake.
Which versions should be remediated?
Affected releases span OTP 17.0 up to, but excluding, OTP 27.3.4.14, OTP 28.5.0.9, and OTP 29.0.3. The corresponding fixed ssl versions are 11.2.12.10, 11.6.0.8, and 11.7.3.
What can be done if an update cannot be applied immediately?
The provided information identifies TLS 1.3 as unaffected. Avoiding affected TLS 1.2 and DTLS client handshakes is the available mitigation indicated by the data.