Where
-Infinity
0
Severity
9.1
AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Summary

The Erlang/OTP ssl TLS 1.2 (and earlier) and DTLS client does not verify that the cipher suite selected by the server in ServerHello was among the suites offered by the client in ClientHello. The client-side tlshandshake:hello/5 handler validates the negotiated protocol version and the downgrade sentinel but hands the server-chosen suite directly to sslhandshake:handleserverhelloextensions/9, which installs it without a membership check. The TLS 1.3 client path performs this check (per RFC 8446), so it is not affected.

An on-path attacker between the client and the intended server can respond with a ServerHello selecting an anonymous key exchange suite such as TLSDHanon or TLSECDHanon that the client never offered. Anonymous suites do not require the server to present a certificate, so the entire verifypeer and cacerts configuration is bypassed: the attacker completes the handshake with its own ephemeral parameters, no certificate is validated, no hostname is checked, and ssl:connect returns {ok, Socket}. All subsequent application traffic is readable and modifiable by the attacker.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to ssl from 5.3.4 before 11.2.12.11, 11.6.0.4, and 11.7.4. Whether OTP before OTP 17.0, corresponding to ssl before 5.3.4, is affected is unknown.

Workarounds

- Restrict client connections to TLS 1.3 only by setting versions to ['tlsv1.3'] in the client's ssl options. The TLS 1.3 client path performs the required cipher suite membership check and is not affected.

Configurations

The vulnerability only affects TLS clients using TLS 1.2 (or earlier) or DTLS. TLS 1.3 client connections perform the cipher suite membership check and are not affected. Servers are not affected. Exploitation additionally requires an on-path (adversary-in-the-middle) attacker between the client and the intended server.

1 / 2
Source: OSV
First published (updated )
Severity
8.7
AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Summary

The Erlang/OTP ssl application does not detect cycles when reconstructing an incomplete peer certificate chain during a TLS or DTLS handshake. In sslcertificate:handleincompletechain/5, the received chain is passed to sslcertificate:buildcertificatechain/5, which walks issuer relationships via sslcertificate:docertificatechain/7 with no cycle detection and no depth limit. When the peer supplies two mutually cross-signed certificates in unordered form (A issues B, B issues A), the issuer lookup alternates between the two certificates and the pair of functions recurses indefinitely, growing the call stack and chain accumulator without bound.

An unauthenticated remote attacker can send a crafted certificate chain in a TLS or DTLS Certificate handshake message to exhaust available memory and crash the BEAM node. Only a TCP connection and a partial handshake are required; no authentication or completed handshake is needed, and both TLS/DTLS servers and clients are affected when processing peer certificate messages.

This issue affects OTP from OTP 23.2 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to ssl from 10.2 before 11.2.12.11, 11.6.0.4, and 11.7.4.

1 / 2
Source: OSV
First published (updated )
Severity
8.2
AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Summary

The Erlang/OTP ssl application does not validate that the PSK identity list and binder list carried in a TLS 1.3 ClientHello pre-shared key extension have equal length before passing them to the session ticket handler. In tlshandshake13:handlepresharedkey/3, an OfferedPreSharedKeys record with a mismatched number of identities and binders is forwarded directly to tlsserversessionticket:use/4, which crashes the session ticket handler process.

An unauthenticated remote attacker can send a single crafted ClientHello to a TLS 1.3 server with session tickets enabled (stateful or stateless mode) and permanently disrupt session ticket handling on that listener. New TLS 1.3 handshakes complete but subsequently crash when the server attempts to issue a session ticket, effectively making TLS 1.3 unusable on the affected listener until the ssl application is restarted. TLS 1.2 connections are not affected.

This issue affects OTP from OTP 22.2 before OTP 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssl from 9.5 before 11.2.12.10, 11.6.0.3, and 11.7.3.

Workarounds

Disable session tickets on TLS 1.3 servers by setting sessiontickets to disabled in the server's ssl options. Restrict the server to TLS 1.2 by setting versions to ['tlsv1.2'] in the server's ssl options.

Configurations

The vulnerability only affects TLS 1.3 servers that have session tickets enabled (either stateful or stateless mode). TLS 1.2 connections and clients are not affected.

1 / 2
Source: OSV
First published (updated )
Severity
8.2
AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Summary

The Erlang/OTP ssl application does not validate that the PSK identity list and binder list carried in a TLS 1.3 ClientHello pre-shared key extension have equal length before passing them to the session ticket handler. In tlshandshake13:handlepresharedkey/3, an OfferedPreSharedKeys record with a mismatched number of identities and binders is forwarded directly to tlsserversessionticket:use/4, which crashes the session ticket handler process.

An unauthenticated remote attacker can send a single crafted ClientHello to a TLS 1.3 server with session tickets enabled (stateful or stateless mode) and permanently disrupt session ticket handling on that listener. New TLS 1.3 handshakes complete but subsequently crash when the server attempts to issue a session ticket, effectively making TLS 1.3 unusable on the affected listener until the ssl application is restarted. TLS 1.2 connections are not affected.

This issue affects OTP from OTP 22.2 before OTP 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssl from 9.5 before 11.2.12.10, 11.6.0.3, and 11.7.3.

Workarounds

Disable session tickets on TLS 1.3 servers by setting sessiontickets to disabled in the server's ssl options. Restrict the server to TLS 1.2 by setting versions to ['tlsv1.2'] in the server's ssl options.

Configurations

The vulnerability only affects TLS 1.3 servers that have session tickets enabled (either stateful or stateless mode). TLS 1.2 connections and clients are not affected.

1 / 2
Source: OSV
First published (updated )
Severity
7.6
AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N

Summary

Improper Certificate Validation vulnerability in Erlang OTP publickey (pubkeyocsp module) allows OCSP designated-responder authorization bypass via missing signature verification.

The OCSP response validation in publickey:pkixocspvalidate/5 does not verify that a CA-designated responder certificate was cryptographically signed by the issuing CA. Instead, it only checks that the responder certificate's issuer name matches the CA's subject name and that the certificate has the OCSPSigning extended key usage. An attacker who can intercept or control OCSP responses can create a self-signed certificate with a matching issuer name and the OCSPSigning EKU, and use it to forge OCSP responses that mark revoked certificates as valid.

This affects SSL/TLS clients using OCSP stapling, which may accept connections to servers with revoked certificates, potentially transmitting sensitive data to compromised servers. Applications using the publickey:pkixocspvalidate/5 API directly are also affected, with impact depending on usage context.

This vulnerability is associated with program files lib/publickey/src/pubkeyocsp.erl and program routines pubkeyocsp:isauthorizedresponder/3.

This issue affects OTP from OTP 27.0 before OTP 27.3.4.10 and OTP 28.4.2, corresponding to publickey from 1.16 before 1.17.1.2 and 1.20.3, and ssl from 11.2 before 11.2.12.7 and 11.5.4.

Workarounds

For SSL users:

Do not enable OCSP validation setting (current default is {stapling, nostaple}) Use CRL-based revocation checking by setting the {crlcheck, true} SSL option instead

For applications using publickey:pkixocspvalidate/5 directly:

Pass {istrustedresponderfun, Fun} option with a function that validates trusted responder certificates Restrict OCSP responder access to trusted endpoints via network controls (only applicable if you control the OCSP infrastructure)

Configurations

SSL/TLS must be configured with OCSP stapling enabled (e.g., {stapling, staple}), or the application must call publickey:pkixocspvalidate/5 directly. OCSP stapling is disabled by default ({stapling, nostaple}).

1 / 2
Source: OSV
First published (updated )
Severity
7

The Erlang/OTP ssl application does not validate that the PSK identity list and binder list carried in a TLS 1.3 ClientHello pre-shared key extension have equal length before passing them to the session ticket handler. In tlshandshake13:handlepresharedkey/3, an OfferedPreSharedKeys record with a mismatched number of identities and binders is forwarded directly to tlsserversessionticket:use/4, which crashes the session ticket handler process.

An unauthenticated remote attacker can send a single crafted ClientHello to a TLS 1.3 server with session tickets enabled (stateful or stateless mode) and permanently disrupt session ticket handling on that listener. New TLS 1.3 handshakes complete but subsequently crash when the server attempts to issue a session ticket, effectively making TLS 1.3 unusable on the affected listener until the ssl application is restarted. TLS 1.2 connections are not affected.

This issue affects OTP from 22.2 before 29.0.3, 28.5.0.3 and 27.3.4.14 corresponding to ssl from 9.5 before 11.7.3, 11.6.0.3 and 11.2.12.10.

First published (updated )
Severity
6.3
AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Summary

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.

Details

1. One session cache per listener. tlssocket:listen/3 starts one pre-TLS 1.3 session-ID tracker per listen socket via sessionidtracker/2. Every SNI virtual host served from that socket shares it, and the cached #session{} record stores the peer and server certificates but no SNI name and no client trust policy.

2. The SNI option set inherits session reuse. When the ClientHello carries a server name, sslgenstatem:handlesniextension/2 and handlesnihostname/2 call updatessloptionsfromsni/2, which passes the base listener options as fallback into sslconfig:updateoptions/3. The base listener's verifynone has already produced reusesessions = true. sslconfig:optreusesessions/3 computes a false default for verifypeer, but getoptbool/4 finds the inherited value and keeps it when the SNI option list does not mention reusesessions.

3. Resumption does not revalidate the peer certificate. On an abbreviated handshake sslhandshake:selectsession/8 calls sslsession:serverselectsession/5, which accepts the cached session when sslsession:isresumable/4 finds that it is marked resumable, that isowncert/2 matches one of the current server certificates, that reusableoptions/2 sees any cached peer certificate when failifnopeercert is set, and that the reusesession fun agrees. Nothing compares the ClientHello server name with the name that created the session, and the cached peer certificate is not validated against the CA selected for the new name.

4. Result. A client whose certificate chains to the lower-trust name's CA completes a full handshake there, then presents the same session ID with the higher-trust server name. The server resumes the session, reports sessionresumption as true and the low-trust peer certificate through ssl:peercert/1, and the application behind the protected name sees an authenticated mTLS peer. isowncert/2 is why both names must share a server certificate.

Proof of concept

1. Create one server certificate with subject alternative names low.test and high.test, two self-signed client CAs (low-ca, high-ca), and one client certificate signed by low-ca. 2. Start an ssl:listen/2 server on TLS 1.2 with {verify, verifynone} and an snifun that returns {verify, verifypeer}, {failifnopeercert, true} and the low-ca or high-ca cacertfile for the respective name. Do not set reusesessions anywhere. 3. Connect with openssl sclient -servername high.test -tls12 -noticket using the low client certificate. The server rejects the handshake with unknownca. 4. Connect with -servername low.test and the same certificate, saving the session with -sessout. The handshake succeeds. 5. Connect with -servername high.test and -sessin pointing at the saved session. The server resumes the session, ssl:connectioninformation/2 reports sessionresumption true for high.test, and the application behind the protected name serves the request to a client whose certificate high-ca never issued.

Impact

A client holding a certificate issued by the lower-trust SNI name's CA connects to the higher-trust name as a fully authenticated mTLS peer and obtains whatever that service grants on a successful client-certificate handshake. Multi-tenant or partner-facing listeners that separate trust domains by SNI name are affected.

Workarounds

- Set {reusesessions, false} in each SNI service's option set, or in the base listener options. The reporter's proof of concept confirmed that this blocks the cross-name resumption. - Serve distinct SNI trust domains on separate listen sockets, which gives each its own session cache. - Restrict the listener to TLS 1.3 with {versions, ['tlsv1.3']}. TLS 1.3 does not use the session-ID cache.

Configurations

Exploitation requires all of the following. One TLS listener serves at least two SNI names through snifun or snihosts. The names use the same server certificate but select different client CAs with verifypeer. TLS 1.2 or earlier is enabled. No SNI option set sets reusesessions to false while the base listener's effective value is true, which is the default when the base listener uses verifynone. The attacker holds a client certificate that the lower-trust name accepts.

1 / 2
Source: OSV
First published (updated )
Severity
6.3
AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Summary

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.

Details

1. One session cache per listener. tlssocket:listen/3 starts one pre-TLS 1.3 session-ID tracker per listen socket via sessionidtracker/2. Every SNI virtual host served from that socket shares it, and the cached #session{} record stores the peer and server certificates but no SNI name and no client trust policy.

2. The SNI option set inherits session reuse. When the ClientHello carries a server name, sslgenstatem:handlesniextension/2 and handlesnihostname/2 call updatessloptionsfromsni/2, which passes the base listener options as fallback into sslconfig:updateoptions/3. The base listener's verifynone has already produced reusesessions = true. sslconfig:optreusesessions/3 computes a false default for verifypeer, but getoptbool/4 finds the inherited value and keeps it when the SNI option list does not mention reusesessions.

3. Resumption does not revalidate the peer certificate. On an abbreviated handshake sslhandshake:selectsession/8 calls sslsession:serverselectsession/5, which accepts the cached session when sslsession:isresumable/4 finds that it is marked resumable, that isowncert/2 matches one of the current server certificates, that reusableoptions/2 sees any cached peer certificate when failifnopeercert is set, and that the reusesession fun agrees. Nothing compares the ClientHello server name with the name that created the session, and the cached peer certificate is not validated against the CA selected for the new name.

4. Result. A client whose certificate chains to the lower-trust name's CA completes a full handshake there, then presents the same session ID with the higher-trust server name. The server resumes the session, reports sessionresumption as true and the low-trust peer certificate through ssl:peercert/1, and the application behind the protected name sees an authenticated mTLS peer. isowncert/2 is why both names must share a server certificate.

Proof of concept

1. Create one server certificate with subject alternative names low.test and high.test, two self-signed client CAs (low-ca, high-ca), and one client certificate signed by low-ca. 2. Start an ssl:listen/2 server on TLS 1.2 with {verify, verifynone} and an snifun that returns {verify, verifypeer}, {failifnopeercert, true} and the low-ca or high-ca cacertfile for the respective name. Do not set reusesessions anywhere. 3. Connect with openssl sclient -servername high.test -tls12 -noticket using the low client certificate. The server rejects the handshake with unknownca. 4. Connect with -servername low.test and the same certificate, saving the session with -sessout. The handshake succeeds. 5. Connect with -servername high.test and -sessin pointing at the saved session. The server resumes the session, ssl:connectioninformation/2 reports sessionresumption true for high.test, and the application behind the protected name serves the request to a client whose certificate high-ca never issued.

Impact

A client holding a certificate issued by the lower-trust SNI name's CA connects to the higher-trust name as a fully authenticated mTLS peer and obtains whatever that service grants on a successful client-certificate handshake. Multi-tenant or partner-facing listeners that separate trust domains by SNI name are affected.

Workarounds

- Set {reusesessions, false} in each SNI service's option set, or in the base listener options. The reporter's proof of concept confirmed that this blocks the cross-name resumption. - Serve distinct SNI trust domains on separate listen sockets, which gives each its own session cache. - Restrict the listener to TLS 1.3 with {versions, ['tlsv1.3']}. TLS 1.3 does not use the session-ID cache.

Configurations

Exploitation requires all of the following. One TLS listener serves at least two SNI names through snifun or snihosts. The names use the same server certificate but select different client CAs with verifypeer. TLS 1.2 or earlier is enabled. No SNI option set sets reusesessions to false while the base listener's effective value is true, which is the default when the base listener uses verifynone. The attacker holds a client certificate that the lower-trust name accepts.

1 / 2
Source: OSV
First published (updated )

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