Erlang OTP
TLS 1.3 server denial of service via malformed ClientHello pre-shared key extension
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 tls_handshake_1_3:handle_pre_shared_key/3, an OfferedPreSharedKeys record with a mismatched number of identities and binders is forwarded directly to tls_server_session_ticket: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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9.5, < *
Fixed in *, 11.2.12.10, 11.6.0.3, 11.7.3
- >= 22.2, < *
Fixed in *, 27.3.4.14, 28.5.0.3, 29.0.3
- >= 339a279f02ce38a7b23010e56000613e19abb21f, < *
Fixed in *, 095f744713c325acdbd18c23e397f04593c06275, 2c3e599797644310e5d4aa39c7193420e59dadff, 9b5437c72fa3403a75c1aba28e5c532bc191c662, e77823e6d980b2ec0b4fe4ea3f2d098ca239e3ce
Mitigation
Upgrade OTP to * or 11.2.12.10 or 11.6.0.3 or 11.7.3 or later.
Upgrade OTP to * or 27.3.4.14 or 28.5.0.3 or 29.0.3 or later.
Upgrade OTP to * or 095f744713c325acdbd18c23e397f04593c06275 or 2c3e599797644310e5d4aa39c7193420e59dadff or 9b5437c72fa3403a75c1aba28e5c532bc191c662 or e77823e6d980b2ec0b4fe4ea3f2d098ca239e3ce or later.
Workaround
* Disable session tickets on TLS 1.3 servers by setting session_tickets 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.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.