Vulnerability · Published Jul 27, 2026 · Assigned by EEF

CVE-2026-58227TLS/DTLS denial of service via unbounded recursion on cross-signed peer certificate chain

High 8.7

In plain English

A high-severity security flaw in OTP from Erlang. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.4%top 67.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The Erlang/OTP ssl application does not detect cycles when reconstructing an incomplete peer certificate chain during a TLS or DTLS handshake. In ssl_certificate:handle_incomplete_chain/5, the received chain is passed to ssl_certificate:build_certificate_chain/5, which walks issuer relationships via ssl_certificate:do_certificate_chain/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 29.0.4, OTP 28.5.0.4 and OTP 27.3.4.15, corresponding to ssl from 10.2 before 11.7.4, 11.6.0.4 and 11.2.12.11.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12erlangno fix listedDEBIAN-CVE-2026-58227
Debian:13erlang1:27.3.4.1+dfsg-1+deb13u3DEBIAN-CVE-2026-58227
Debian:14erlang1:29.0.4+dfsg-1DEBIAN-CVE-2026-58227
Ubuntu:22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.7UBUNTU-CVE-2026-58227
Ubuntu:22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.7USN-8827-1
Ubuntu:24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.7USN-8827-1
Ubuntu:24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.7UBUNTU-CVE-2026-58227
Ubuntu:26.04:LTSerlang1:27.3.4.6+dfsg-1ubuntu0.1USN-8827-1
Ubuntu:26.04:LTSerlang1:27.3.4.6+dfsg-1ubuntu0.1UBUNTU-CVE-2026-58227

Affected products (as reported)

VendorProductVersions
Erlang OTP 10.2 – before *
Erlang OTP 23.2 – before *addc42df113f8f15fc20e9dff45490b3ce0d3d6b – before *

Weakness: CWE-674 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References