CVE-2026-58227 json
TLS/DTLS denial of service via unbounded recursion on cross-signed peer certificate chain
published 2026-07-27 3 mo ago modified 2026-10-24 16 d ago also EUVD-2026-49315
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
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 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.
Patch / fix
- Erlang OTP 11.2.12.11, 11.6.0.4, 11.7.4, 27.3.4.15, 28.5.0.4, 29.0.4
- erlang Debian 13 1:27.3.4.1+dfsg-1+deb13u3
- erlang Debian 14 1:29.0.4+dfsg-1
debian advisories DEBIAN-CVE-2026-58227
- erlang Ubuntu 22.04 LTS 1:24.2.1+dfsg-1ubuntu0.7
- erlang Ubuntu 24.04 LTS 1:25.3.2.8+dfsg-1ubuntu4.7
- erlang Ubuntu 26.04 LTS 1:27.3.4.6+dfsg-1ubuntu0.1
ubuntu advisories UBUNTU-CVE-2026-58227
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- erlang SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 23.3.4.19-150300.3.39.1
- erlang26 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Server Applications 15 SP7 26.2.1-150300.7.28.1
suse advisories SUSE-SU-2026:3645-1SUSE-SU-2026:3579-1
- erlang openSUSE Tumbleweed 28.5.0.4-1.1
- erlang27 openSUSE Tumbleweed 27.1.3-3.1
opensuse advisories openSUSE-SU-2026:11559-1openSUSE-SU-2026:11560-1
- github.com/erlang/otp@0307bff commit
- github.com/erlang/otp@241d437 commit
- github.com/erlang/otp@7db6472 commit
- cna.erlef.org/cves/CVE-2026-58227.html advisory
- osv.dev/vulnerability/EEF-CVE-2026-58227 advisory
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | 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 |
| CNA | 4.0 | 8.7 | 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/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 |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Erlang OTP
Classification
- Weakness
-
- CWE-674 Uncontrolled Recursion
References
-
github.com
/erlang/otp/commit/0307bff2c72b685c6bd952daaac6bd661c247d62
patch
-
github.com
/erlang/otp/commit/241d43703989fec4b6bf637beaeb366d92dcc4c2
patch
-
github.com
/erlang/otp/commit/7db64720177961e04545681480d691c4be81c54d
patch
-
cna.erlef.org
/cves/CVE-2026-58227.html
related, patch, third-party-advisory
-
osv.dev
/vulnerability/EEF-CVE-2026-58227
related, patch, third-party-advisory
-
github.com
/erlang/otp/security/advisories/GHSA-r5jr-mq46-vmhw
vendor-advisory, related
-
erlang.org
/doc/system/versions.html#order-of-versions
release-notes
Sources
- CVE List CVE-2026-58227
- NVD CVE-2026-58227
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.