REDHAT-BUG-2552595: Medium severity Ericsson Erlang/OTP vulnerability
Improper Certificate Validation vulnerability in the ssl application in Erlang/OTP allows a client that holds a certificate trusted by one SNI virtual host to authenticate to a second SNI virtual host on the same listener by resuming its TLS 1.2 session there.
A server that serves several SNI names from one listen socket through snifun or snihosts keeps one pre-TLS 1.3 session cache per listener and does not bind a cached session to the SNI name or client trust policy that established it. When an SNI option set switches to verifypeer without naming reusesessions, sslconfig:updateoptions/3 inherits the base listener's reusesessions value of true, so the default that disables reuse for client-authenticating servers does not apply. On an abbreviated handshake sslsession:isresumable/4 checks only that the cached session uses one of the current server certificates and carries some peer certificate, and never revalidates that certificate against the CA selected for the requested name. The names must share a server certificate, which is common with wildcard or multi-SAN certificates. TLS 1.3 does not use this cache and is not affected.
This issue affects OTP from OTP 18.0 before OTP 27.3.4.19, OTP 28.5.0.8, and OTP 29.1.2, corresponding to ssl from 7.0 before 11.2.12.14, 11.6.0.7, and 11.7.8.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 27.3.4.19 - Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 28.5.0.8 - Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 29.1.2
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Servers that host multiple SNI names on one listen socket using sni_fun or sni_hosts are exposed when the names share a server certificate, such as a wildcard or multi-SAN certificate. The issue applies to TLS 1.2 session resumption; TLS 1.3 is not affected.
What does an attacker need to exploit it?
The attacker needs a client certificate trusted by one SNI virtual host and an existing TLS 1.2 session established for that host. They can then attempt to resume that session against another SNI name on the same listener whose client-certificate trust policy would not otherwise accept the certificate.
Can the vulnerable session reuse behavior occur despite client certificate verification being enabled?
Yes. If an SNI option set changes to verify_peer without explicitly setting reuse_sessions, it inherits reuse_sessions=true from the base listener. This bypasses the default behavior intended to disable session reuse for client-authenticating servers.
What can be done if an update is not immediately available?
Avoid TLS 1.2 session resumption across the affected shared listener configuration, including by explicitly disabling reuse_sessions for SNI hosts that use verify_peer. Separating SNI names with different client trust policies onto different listeners also avoids sharing the pre-TLS 1.3 session cache.