{"schemaVersion":3,"id":"CVE-2026-58227","aliases":["UBUNTU-CVE-2026-58227","DEBIAN-CVE-2026-58227"],"status":"published","duplicateOf":null,"title":null,"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.\n\nAn 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.\n\nThis 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.","dates":{"published":"2026-07-27T14:39:44.609Z","modified":"2026-07-28T09:53:23.614Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.7,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","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/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00387,"percentile":0.31332,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00387},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00387,"percentile":0.31332}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00673,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00387,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00387,"percentile":0.31332}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-674","name":"Uncontrolled Recursion","description":"The product does not properly control the amount of recursion that takes place,  consuming excessive resources, such as allocated memory or the program stack.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/674.html"}],"affected":[{"vendor":"debian","product":"erlang","name":"erlang","label":"erlang","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/erlang","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1:27.3.4.1+dfsg-1+deb13u3","noFixRecorded":false,"fixedIn":null},{"text":"< 1:29.0.4+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1:27.3.4.1+dfsg-1+deb13u3 | < 1:29.0.4+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"erlang","name":"erlang","label":"erlang","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/erlang","purlType":"deb","versions":[{"text":"< 1:24.2.1+dfsg-1ubuntu0.7","noFixRecorded":false,"fixedIn":null},{"text":"< 1:25.3.2.8+dfsg-1ubuntu4.7","noFixRecorded":false,"fixedIn":null},{"text":"< 1:27.3.4.6+dfsg-1ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:24.2.1+dfsg-1ubuntu0.7 | < 1:25.3.2.8+dfsg-1ubuntu4.7 | < 1:27.3.4.6+dfsg-1ubuntu0.1","eol":null,"hubHref":null},{"vendor":"erlang","product":"erlang\\/otp","name":"Erlang/OTP","label":"erlang\\/otp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 23.2, < 27.3.4.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 28.0, < 28.5.0.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 29.0, < 29.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 23.2, < 27.3.4.15 | ≥ 28.0, < 28.5.0.4 | ≥ 29.0, < 29.0.4","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"erlang","label":"Erlang","category":"lang"}},"hubHref":"/vendor/erlang/erlangotp"},{"vendor":"erlang","product":"erlang\\/ssl","name":"erlang\\/ssl","label":"erlang\\/ssl","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.2, < 11.2.12.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 11.3, < 11.6.0.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 11.7, < 11.7.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.2, < 11.2.12.11 | ≥ 11.3, < 11.6.0.4 | ≥ 11.7, < 11.7.4","eol":null,"hubHref":"/vendor/erlang/erlangssl"},{"vendor":"erlang","product":"otp","name":"OTP","label":"otp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.2","noFixRecorded":true,"fixedIn":null},{"text":"≥ 23.2","noFixRecorded":true,"fixedIn":null},{"text":"≥ addc42df113f8f15fc20e9dff45490b3ce0d3d6b","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 10.2 (No fix recorded) | ≥ 23.2 (No fix recorded) | ≥ addc42df113f8f15fc20e9dff45490b3ce0d3d6b (No fix recorded)","eol":null,"hubHref":"/vendor/erlang/otp"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-r5jr-mq46-vmhw","label":"github.com/erlang/otp/security/advisories/GHSA-r5jr-mq46-vmhw","hostname":"github.com","tags":["Vendor Advisory","Related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-58227.html","label":"cna.erlef.org/cves/CVE-2026-58227.html","hostname":"cna.erlef.org","tags":["Related","Patch","Third Party Advisory"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-58227","label":"osv.dev/vulnerability/EEF-CVE-2026-58227","hostname":"osv.dev","tags":["Related","Patch","Third Party Advisory"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","label":"www.erlang.org/doc/system/versions.html","hostname":"www.erlang.org","tags":["X Version Scheme","Release Notes"]},{"url":"https://github.com/erlang/otp/commit/0307bff2c72b685c6bd952daaac6bd661c247d62","label":"github.com/erlang/otp/commit/0307bff2c72b685c6bd952daaac6bd661c247d62","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/erlang/otp/commit/241d43703989fec4b6bf637beaeb366d92dcc4c2","label":"github.com/erlang/otp/commit/241d43703989fec4b6bf637beaeb366d92dcc4c2","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/erlang/otp/commit/7db64720177961e04545681480d691c4be81c54d","label":"github.com/erlang/otp/commit/7db64720177961e04545681480d691c4be81c54d","hostname":"github.com","tags":["Patch"]},{"url":"https://ubuntu.com/security/CVE-2026-58227","label":"ubuntu.com/security/CVE-2026-58227","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-58227","label":"www.cve.org/CVERecord?id=CVE-2026-58227","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8827-1","label":"ubuntu.com/security/notices/USN-8827-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-58227","label":"security-tracker.debian.org/tracker/CVE-2026-58227","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58227","label":"nvd.nist.gov/vuln/detail/CVE-2026-58227","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:11559-1","OPENSUSE-SU-2026:11560-1","SUSE-SU-2026:3579-1","SUSE-SU-2026:3645-1","USN-8827-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:11559-1","OPENSUSE-SU-2026:11560-1","SUSE-SU-2026:3579-1","SUSE-SU-2026:3645-1","USN-8827-1"]},"timeline":[{"kind":"published","date":"2026-07-27T14:39:44.609Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-28T09:53:23.614Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T09:49:32.075Z","stale":false,"partial":false}}