{"id":"CVE-2026-125275","kind":"vulnerability","aliases":["CVE-2026-125275"],"related":[],"title":"NervesHub: unregistered client certificate CA causes endless handshake loop","description":"Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in device certificate verification in nerves-hub nerves_hub_web allows an unauthenticated remote attacker to cause a denial of service via a TLS client certificate whose CA is not registered. When a client certificate chains to a root in the device endpoint's trust store but no CA in the chain is registered in NervesHub, NervesHub.SSL.decide/2 refuses it with the reason :unknown_ca. Erlang/OTP ssl reads that reason as a missing trust anchor, looks for an alternative root, finds the same root and validates again without end. The handshake process queries the database on each pass and keeps running after the client disconnects, until the node restarts.\n\nThe device endpoint trusts the public roots from CAStore unless DEVICE_SSL_CACERTFILE is set, so a client certificate from a public CA whose chain allows client authentication is sufficient. A chain that ends at a root outside the trust store is refused once.\n\nThis issue affects nerves_hub: from 1.0.0 before 2.5.4.","summary":"NervesHub's device endpoint can be sent a TLS client certificate whose issuing CA is not registered, which makes Erlang/OTP's SSL stack loop forever on certificate validation. Each looping handshake keeps a process querying the database until the node restarts, so an unauthenticated attacker can cause denial of service.","severity":"high","cvss":8.2,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["elixir","erlang-otp","iot","nerves-hub","package","self-hosted"],"not_affected_if":["managed-hosting","version-2.5.4-or-later"],"how_to_check":"- Check the nerves_hub version in `mix.lock` or `mix.exs` and see whether it is between `1.0.0` and `2.5.4`.\n- Check whether `DEVICE_SSL_CACERTFILE` is set in the device endpoint's environment; if it is not, the endpoint trusts public CAStore roots.","fix":"- nerves_hub: move to `2.5.4` or later","status":"open","published_at":"2026-11-17T03:17:00+00:00","first_seen_at":"2026-11-17T03:40:19+00:00","triaged_at":"2026-11-17T03:40:32+00:00","updated_at":"2026-11-17T03:40:32+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-17T03:40:32Z","model":"claude-haiku-5-5","output":{"fix":"- nerves_hub: move to `2.5.4` or later","reach":"internet","title":"NervesHub: unregistered client certificate CA causes endless handshake loop","impact":"medium","summary":"NervesHub's device endpoint can be sent a TLS client certificate whose issuing CA is not registered, which makes Erlang/OTP's SSL stack loop forever on certificate validation. Each looping handshake keeps a process querying the database until the node restarts, so an unauthenticated attacker can cause denial of service.","audience":"businesses","category":"package","nicknames":[],"who_cares":["nerves-hub","self-hosted","elixir","erlang-otp","iot"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"Handshake processes loop forever, exhausting the node until it restarts","analyst_note":"","how_to_check":"- Check the nerves_hub version in `mix.lock` or `mix.exs` and see whether it is between `1.0.0` and `2.5.4`.\n- Check whether `DEVICE_SSL_CACERTFILE` is set in the device endpoint's environment; if it is not, the endpoint trusts public CAStore roots.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-2.5.4-or-later","managed-hosting"],"who_is_affected":"Operators running a self-hosted NervesHub device endpoint with nerves_hub from 1.0.0 before 2.5.4. Because the endpoint trusts public CAStore roots by default, a client certificate from any public CA whose chain allows client authentication is enough to trigger the loop; deployments that set DEVICE_SSL_CACERTFILE to a narrower trust store are only exposed to chains that end at a root in that store.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000808,"input_tokens":4855,"output_tokens":646,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-125275':12A,15A '-2026':11A,14A '/2':145C '1.0.0':247C '2.5.4':249C 'affect':243C 'allow':97C,222C 'altern':166C 'anchor':162C 'attack':72B,101C 'authent':224C 'ca':5A,41B,114C,135C,152C,219C 'cacertfil':209C 'castor':205C 'caus':6A,74B,103C 'certif':4A,38B,54B,88C,112C,121C,215C 'chain':122C,138C,221C,228C 'client':3A,37B,111C,120C,191C,214C,223C 'condit':82C 'cve':10A,13A 'databas':64B,182C 'denial':75B,105C 'devic':30B,87C,128C,198C,207C 'disconnect':192C 'elixir':16B 'end':176C,230C 'endless':7A 'endpoint':31B,129C,199C 'erlang':18B 'erlang-otp':17B 'erlang/otp':47B,153C 'exit':81C 'find':168C 'forev':52B 'handshak':8A,58B,178C 'host':27B 'hub':23B,93C,95C,245C 'infinit':83C 'iot':20B 'issu':40B,242C 'keep':59B,187C 'look':163C 'loop':9A,51B,57B,78C,84C 'make':46B 'miss':160C 'nerv':22B,92C,94C,244C 'nerves-hub':21B,91C 'nerveshub':1A,28B,142C 'nerveshub.ssl.decide':144C 'nerveshub.ssl.decide/2':143C 'node':67B,195C 'otp':19B 'outsid':234C 'packag':24B 'pass':185C 'process':61B,179C 'public':202C,218C 'queri':62B,180C 'read':155C 'reason':150C,157C 'refus':146C,239C 'regist':44B,117C,140C 'remot':100C 'restart':68B,196C 'root':125C,167C,171C,203C,233C 'run':188C 'self':26B 'self-host':25B 'sent':34B 'servic':77B,107C 'set':211C 'ssl':49B,154C,208C 'stack':50B 'store':132C,237C 'suffici':226C 'tls':36B,110C 'trust':131C,161C,200C,236C 'unauthent':71B,99C 'unknown':151C 'unless':206C 'unreach':80C 'unregist':2A 'valid':55B,173C 'verif':89C 'via':108C 'vulner':85C 'web':96C 'whose':39B,113C,220C 'without':175C","nicknames":[],"mitigations":[],"who_affected":"Operators running a self-hosted NervesHub device endpoint with nerves_hub from 1.0.0 before 2.5.4. Because the endpoint trusts public CAStore roots by default, a client certificate from any public CA whose chain allows client authentication is enough to trigger the loop; deployments that set DEVICE_SSL_CACERTFILE to a narrower trust store are only exposed to chains that end at a root in that store.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["elixir","erlangotp","high","iot","nerveshub","package","selfhosted"],"campaign_type":null,"search_a":"'-125275':12A,15A '-2026':11A,14A 'ca':5A 'caus':6A 'certif':4A 'client':3A 'cve':10A,13A 'endless':7A 'handshak':8A 'loop':9A 'nerveshub':1A 'unregist':2A","search_b":"'attack':72B 'ca':41B 'caus':74B 'certif':38B,54B 'client':37B 'databas':64B 'denial':75B 'devic':30B 'elixir':16B 'endpoint':31B 'erlang':18B 'erlang-otp':17B 'erlang/otp':47B 'forev':52B 'handshak':58B 'host':27B 'hub':23B 'iot':20B 'issu':40B 'keep':59B 'loop':51B,57B 'make':46B 'nerv':22B 'nerves-hub':21B 'nerveshub':28B 'node':67B 'otp':19B 'packag':24B 'process':61B 'queri':62B 'regist':44B 'restart':68B 'self':26B 'self-host':25B 'sent':34B 'servic':77B 'ssl':49B 'stack':50B 'tls':36B 'unauthent':71B 'valid':55B 'whose':39B","search_c":"'/2':145C '1.0.0':247C '2.5.4':249C 'affect':243C 'allow':97C,222C 'altern':166C 'anchor':162C 'attack':101C 'authent':224C 'ca':114C,135C,152C,219C 'cacertfil':209C 'castor':205C 'caus':103C 'certif':88C,112C,121C,215C 'chain':122C,138C,221C,228C 'client':111C,120C,191C,214C,223C 'condit':82C 'databas':182C 'denial':105C 'devic':87C,128C,198C,207C 'disconnect':192C 'end':176C,230C 'endpoint':129C,199C 'erlang/otp':153C 'exit':81C 'find':168C 'handshak':178C 'hub':93C,95C,245C 'infinit':83C 'issu':242C 'keep':187C 'look':163C 'loop':78C,84C 'miss':160C 'nerv':92C,94C,244C 'nerves-hub':91C 'nerveshub':142C 'nerveshub.ssl.decide':144C 'nerveshub.ssl.decide/2':143C 'node':195C 'outsid':234C 'pass':185C 'process':179C 'public':202C,218C 'queri':180C 'read':155C 'reason':150C,157C 'refus':146C,239C 'regist':117C,140C 'remot':100C 'restart':196C 'root':125C,167C,171C,203C,233C 'run':188C 'servic':107C 'set':211C 'ssl':154C,208C 'store':132C,237C 'suffici':226C 'tls':110C 'trust':131C,161C,200C,236C 'unauthent':99C 'unknown':151C 'unless':206C 'unreach':80C 'valid':173C 'verif':89C 'via':108C 'vulner':85C 'web':96C 'whose':113C,220C 'without':175C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-17T02:08:53+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/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","cvss_by":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-125275","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125275","severity":null,"published_at":"2026-11-17T03:17:00+00:00","modified_at":"2026-11-17T03:17:00+00:00","first_seen_at":"2026-11-17T03:40:19+00:00","fetched_at":"2026-11-17T03:40:19+00:00","note":null}],"documents":[{"id":174212,"url":"https://github.com/nerves-hub/nerves_hub_web/commit/064e78cc189dd9b87748746f44179632a52ddf58","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":174213,"url":"https://github.com/nerves-hub/nerves_hub_web/commit/a49fb8875f3aab40062881028ef4e406d985aaa9","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":174214,"url":"https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-8j48-4mg5-7v6v","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-17T02:08:53+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}