Erlang/OTP Denial of Service via Crafted Certificate Chains
The Erlang/OTP ssl application fails to perform cycle detection or depth limitation when reconstructing incomplete peer certificate chains during TLS or DTLS handshakes, enabling remote unauthenticated memory exhaustion and node crashes.
CVE search metadata
CVE search record: CVE-2026-58227. Severity: high. CVSS: 7.5. EPSS: 0.48%. KEV: no. Product: Erlang/OTP, Erlang/ssl. Brief: Erlang/OTP Denial of Service via Crafted Certificate Chains. Brief link: https://feed.craftedsignal.io/briefs/2026-11-erlang-otp-ssl-dos-cve-2026-58227/
Triage facts
Revision 1- Applicability
- Erlang/OTP, Erlang/ssl
- Evidence
- Unknown
- Severity
- Low
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 20, 08:19 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A2Roughly even chance
Overview
The Erlang/OTP ssl application is vulnerable to a denial-of-service condition due to a lack of cycle detection and depth limiting during the reconstruction of incomplete peer certificate chains. In ssl_certificate:handle_incomplete_chain/5, a received chain is passed to ssl_certificate:build_certificate_chain/5. The latter function traverses issuer relationships using ssl_certificate:do_certificate_chain/7. When presented with two mutually cross-signed certificates (A issues B, B issues A), the lookup alternates indefinitely, causing the call stack and chain accumulator to grow without bound.
Attack Chain
An unauthenticated remote attacker can supply a crafted certificate chain within a TLS or DTLS Certificate handshake message. This process requires only a TCP connection and a partial handshake. No authentication or completed handshake is necessary to trigger the condition. Both TLS/DTLS servers and clients are affected when processing peer certificate messages.
Impact
Successful exploitation of this vulnerability leads to exhaustion of available memory, causing the BEAM node to crash.
Recommendation
Users should update to versions of Erlang/OTP and the ssl application that include the necessary cycle detection and depth limits. Affected ranges include OTP 23.2 before 27.3.4.15, 28.5.0.4, and 29.0.4, corresponding to ssl versions 10.2 before 11.2.12.11, 11.6.0.4, and 11.7.4.