CVE-2026-58227
JSON

8.7high

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

Severity
8.7high CVSS:4.0 by EEF
Exploit likelihood
0.64% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-58227GHSA-r5jr-mq46-vmhw

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 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.

Affected

Product or packageVersionsReported by
sslfrom 10.2 before *CVE List
otpfrom 23.2 before *CVE List
erlang/otpfrom addc42df113f8f15fc20e9dff45490b3ce0d3d6b before *CVE List
https://github.com/erlang/otpfrom addc42df113f8f15fc20e9dff45490b3ce0d3d6b before 0307bff2c72b685c6bd952daaac6bd661c247d62, before 241d43703989fec4b6bf637beaeb366d92dcc4c2, before 7db64720177961e04545681480d691c4be81c54dErlang Ecosystem Foundation
erlang erlang/otpfrom 23.2 before 27.3.4.15, from 28.0 before 28.5.0.4, from 29.0 before 29.0.4NVD
erlang erlang/sslfrom 10.2 before 11.2.12.11, from 11.3 before 11.6.0.4, from 11.7 before 11.7.4NVD

All scores

EEF8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-674

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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 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.

Erlang Ecosystem Foundation

Summary

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 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.

NVD (es)

La aplicación ssl de Erlang/OTP no detecta ciclos al reconstruir una cadena de certificados de pares incompleta durante un handshake TLS o DTLS. En ssl_certificate:handle_incomplete_chain/5, la cadena recibida se pasa a ssl_certificate:build_certificate_chain/5, que recorre las relaciones de emisor a través de ssl_certificate:do_certificate_chain/7 sin detección de ciclos y sin límite de profundidad. Cuando el par suministra dos certificados mutuamente firmados de forma cruzada en formato desordenado (A emite B, B emite A), la búsqueda del emisor alterna entre los dos certificados y el par de funciones recurre indefinidamente, haciendo crecer la pila de llamadas y el acumulador de la cadena sin límite. Un atacante remoto no autenticado puede enviar una cadena de certificados manipulada en un mensaje de handshake de certificado TLS o DTLS para agotar la memoria disponible y bloquear el nodo BEAM. Solo se requiere una conexión TCP y un handshake parcial; no se necesita autenticación ni un handshake completado, y tanto los servidores como los clientes TLS/DTLS se ven afectados al procesar mensajes de certificados de pares. Este problema afecta a OTP desde OTP 23.2 antes de OTP 29.0.4, OTP 28.5.0.4 y OTP 27.3.4.15, lo que corresponde a ssl desde 10.2 antes de 11.7.4, 11.6.0.4 y 11.2.12.11.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58227 changed 2026-11-20CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-58227 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-58227 changed 2026-11-20Public domain