CVE-2026-58227
TLS/DTLS denial of service via unbounded recursion on cross-signed peer certificate chain
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.
INFO
Published Date :
July 27, 2026, 4:17 p.m.
Last Modified :
July 27, 2026, 6:16 p.m.
Remotely Exploit :
Yes !
Source :
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 4.0 | HIGH | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | ||||
| CVSS 4.0 | HIGH | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db |
Solution
- Update Erlang/OTP to a version that includes the fix.
- Apply specific ssl application patches if available.
- Ensure certificate validation includes cycle detection.
- Implement a maximum certificate chain depth.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-58227.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-58227 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-58227
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-58227 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-58227 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 27, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-58227', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-07-27T17:25:16.012380Z'} -
New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Jul. 27, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/erlang/otp', 'vendor': 'Erlang', 'modules': ['ssl_certificate'], 'product': 'OTP', 'versions': [{'status': 'affected', 'changes': [{'at': '11.7.4', 'status': 'unaffected'}, {'at': '11.6.0.4', 'status': 'unaffected'}, {'at': '11.2.12.11', 'status': 'unaffected'}], 'version': '10.2', 'lessThan': '*', 'versionType': 'otp'}], 'packageURL': 'pkg:otp/ssl?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%20https:%2F%2Fgithub.com%2Ferlang%2Fotp.git', 'packageName': 'ssl', 'programFiles': ['src/ssl_certificate.erl'], 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'ssl_certificate:handle_incomplete_chain/5'}, {'name': 'ssl_certificate:build_certificate_chain/5'}, {'name': 'ssl_certificate:do_certificate_chain/7'}]}, {'cpes': ['cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/erlang/otp', 'vendor': 'Erlang', 'modules': ['ssl_certificate'], 'product': 'OTP', 'versions': [{'status': 'affected', 'changes': [{'at': '29.0.4', 'status': 'unaffected'}, {'at': '28.5.0.4', 'status': 'unaffected'}, {'at': '27.3.4.15', 'status': 'unaffected'}], 'version': '23.2', 'lessThan': '*', 'versionType': 'otp'}, {'status': 'affected', 'changes': [{'at': '7db64720177961e04545681480d691c4be81c54d', 'status': 'unaffected'}, {'at': '241d43703989fec4b6bf637beaeb366d92dcc4c2', 'status': 'unaffected'}, {'at': '0307bff2c72b685c6bd952daaac6bd661c247d62', 'status': 'unaffected'}], 'version': 'addc42df113f8f15fc20e9dff45490b3ce0d3d6b', 'lessThan': '*', 'versionType': 'git'}], 'packageURL': 'pkg:github/erlang/otp', 'packageName': 'erlang/otp', 'programFiles': ['lib/ssl/src/ssl_certificate.erl'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'ssl_certificate:handle_incomplete_chain/5'}, {'name': 'ssl_certificate:build_certificate_chain/5'}, {'name': 'ssl_certificate:do_certificate_chain/7'}]}] Added 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. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-674 Added Reference https://cna.erlef.org/cves/CVE-2026-58227.html Added Reference https://github.com/erlang/otp/commit/0307bff2c72b685c6bd952daaac6bd661c247d62 Added Reference https://github.com/erlang/otp/commit/241d43703989fec4b6bf637beaeb366d92dcc4c2 Added Reference https://github.com/erlang/otp/commit/7db64720177961e04545681480d691c4be81c54d Added Reference https://github.com/erlang/otp/security/advisories/GHSA-r5jr-mq46-vmhw Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-58227 Added Reference https://www.erlang.org/doc/system/versions.html#order-of-versions