CVE-2026-58227: CWE-674 Uncontrolled Recursion in Erlang OTP
CVE-2026-58227 is a high-severity vulnerability in the Erlang/OTP ssl application where the system fails to detect cycles in peer certificate chains during TLS or DTLS handshakes. This flaw allows an unauthenticated remote attacker to send a crafted certificate chain that causes uncontrolled recursion, exhausting memory and crashing the BEAM node. Both TLS/DTLS clients and servers processing peer certificate messages are affected. The issue impacts multiple OTP versions prior to specific patched releases.
AI Analysis
Technical Summary
The Erlang/OTP ssl application does not detect cycles when reconstructing incomplete peer certificate chains during TLS or DTLS handshakes. Specifically, in ssl_certificate:handle_incomplete_chain/5, the chain is passed to ssl_certificate:build_certificate_chain/5, which calls ssl_certificate:do_certificate_chain/7 without cycle detection or depth limits. If a peer supplies two mutually cross-signed certificates in unordered form, the issuer lookup alternates indefinitely between them, causing infinite recursion that grows the call stack and memory usage without bound. This leads to memory exhaustion and a crash of the BEAM node. The vulnerability affects OTP versions from 23.2 before OTP 29.0.4, 28.5.0.4, and 27.3.4.15, corresponding to ssl versions 10.2 before 11.7.4, 11.6.0.4, and 11.2.12.11.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability by sending a specially crafted certificate chain during a TLS or DTLS handshake, causing uncontrolled recursion that exhausts memory and crashes the Erlang BEAM node. This results in denial of service for both TLS/DTLS clients and servers using the affected ssl application versions. No authentication or completed handshake is required to trigger the issue.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider limiting exposure to untrusted TLS/DTLS peers or applying any vendor-recommended temporary mitigations once published.
CVE-2026-58227: CWE-674 Uncontrolled Recursion in Erlang OTP
Description
CVE-2026-58227 is a high-severity vulnerability in the Erlang/OTP ssl application where the system fails to detect cycles in peer certificate chains during TLS or DTLS handshakes. This flaw allows an unauthenticated remote attacker to send a crafted certificate chain that causes uncontrolled recursion, exhausting memory and crashing the BEAM node. Both TLS/DTLS clients and servers processing peer certificate messages are affected. The issue impacts multiple OTP versions prior to specific patched releases.
CVSS v4.0
Score 8.7high
Affected software
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Erlang/OTP ssl application does not detect cycles when reconstructing incomplete peer certificate chains during TLS or DTLS handshakes. Specifically, in ssl_certificate:handle_incomplete_chain/5, the chain is passed to ssl_certificate:build_certificate_chain/5, which calls ssl_certificate:do_certificate_chain/7 without cycle detection or depth limits. If a peer supplies two mutually cross-signed certificates in unordered form, the issuer lookup alternates indefinitely between them, causing infinite recursion that grows the call stack and memory usage without bound. This leads to memory exhaustion and a crash of the BEAM node. The vulnerability affects OTP versions from 23.2 before OTP 29.0.4, 28.5.0.4, and 27.3.4.15, corresponding to ssl versions 10.2 before 11.7.4, 11.6.0.4, and 11.2.12.11.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability by sending a specially crafted certificate chain during a TLS or DTLS handshake, causing uncontrolled recursion that exhausts memory and crashes the Erlang BEAM node. This results in denial of service for both TLS/DTLS clients and servers using the affected ssl application versions. No authentication or completed handshake is required to trigger the issue.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider limiting exposure to untrusted TLS/DTLS peers or applying any vendor-recommended temporary mitigations once published.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-06-29T18:54:08.633Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a677b469c2644c7f851288b
Added to database: 07/27/2026, 15:37:42 UTC
Last enriched: 08/12/2026, 17:15:36 UTC
Last updated: 09/10/2026, 18:10:37 UTC
Views: 116
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.