Skip to main content

NervesHub EUVDEUVD-2026-126831

| CVE-2026-125275 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-11-17 EEF
8.2
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain public-CA client certificate with client-auth usage
  2. Delivery
    Open TLS connection to device endpoint and disconnect
  3. Exploit
    Server refuses with :unknown_ca, OTP revalidates same root endlessly
  4. Execution
    Handshake process loops, querying database every pass
  5. Impact
    Scheduler and shared PostgreSQL saturate, NervesHub unavailable until node restart

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the submitted client certificate chain terminates at a root present in the device endpoint's trust store while no CA in that chain is registered in NervesHub. In the default deployment (DEVICE_SSL_CACERTFILE unset, the default since 2.0.0), the trust store is CAStore's public web roots, so any client certificate from a public CA whose chain allows client authentication is sufficient and no account is needed. If DEVICE_SSL_CACERTFILE is set to a bundle containing a root that signs device certificates, any certificate from that root whose CA is unregistered triggers it - including a previously deleted device, since deleting a device deletes its certificates. Limiting factors: a chain ending at a root the endpoint does NOT trust (e.g., an attacker's own self-signed root) is refused once and does not loop; only versions 1.0.0 through 2.5.3 are affected; and an operator who sets DEVICE_SSL_CACERTFILE to a bundle with no public roots and no device-signing root (per the vendor workaround) removes the condition entirely. Node restart clears handshakes already stuck.

Impact

This is a genuine, high-priority denial-of-service issue rather than an inflated high-CVSS score. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) confirms a network-reachable, unauthenticated attack whose only barrier (AT:P) is possessing a client certificate whose chain reaches a root the device endpoint trusts - trivially satisfied under the default configuration, where DEVICE_SSL_CACERTFILE is unset and the trust store is CAStore's public web roots (so any public-CA client certificate with client-auth usage works). Impact is availability-only (VC:N/VI:N/VA:H): no data exposure or code execution, but the advisory reports that a single stuck handshake saturated two hosts and the shared PostgreSQL database, and a handful of connections can make NervesHub unavailable to all devices and users until each node is restarted. The vuln.today decision label is 'this_week' and the vendor advisory (EEF/ERLEF CNA) is detailed and credible. No CISA KEV listing and no EPSS score were provided, so there is no evidence of active exploitation or a modeled exploitation probability; this is a disclosed-with-advisory defect, not a confirmed in-the-wild campaign. The advisory includes a step-by-step proof of concept and a committed regression test demonstrating the loop against v2.5.3, so triggering conditions are well understood even though no independent weaponized exploit is confirmed.

Exploit ScenarioDerived

An unauthenticated remote attacker holding any client certificate issued by a public CA (with a chain permitting client authentication) opens a single TLS connection to a default-configured NervesHub device endpoint and then disconnects. Because the certificate chains to a public root in the default CAStore trust store but no CA in the chain is registered in NervesHub, OTP's ssl re-validates the same root endlessly, pinning a handshake process that keeps hammering the database thousands of times per second. A detailed public PoC and a committed regression test in the vendor advisory demonstrate the loop; with AV:N and low complexity, a handful of such connections can take the service down for all devices.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 17, 2026

Unauthenticated denial of service in NervesHub's device TLS endpoint: a client certificate that chains to a root the endpoint trusts, while no CA in that chain is registered in NervesHub, sends Erlang/OTP's ssl layer into an endless re-validation of the same path, pinning a scheduler and hammering the shared PostgreSQL database at roughly three queries per pass for every connection opened, and the loop keeps running after the client disconnects. NervesHub 1.0.0 through 2.5.3 are affected, and since 2.0.0 made CAStore's public web roots the default device trust store, no operator configuration is needed for exposure - anyone holding a public-CA client certificate that permits client authentication can trigger it without an account, and the advisory states that one stuck handshake saturated two hosts and the database, so a handful of connections can take NervesHub offline for every device and user until each node is restarted. The vendor-released patch is 2.5.4; the advisory documents a proof-of-concept procedure and ships a real-socket regression test, but no confirmed public exploit code and no CISA KEV entry were identified at time of analysis, and the priority decision places remediation in this week's window rather than an emergency response.

RemediationAI

Upgrade to NervesHub 2.5.4, which ships the fix in commit 064e78cc189dd9b87748746f44179632a52ddf58 and makes the verify_fun refuse an unregistered signer with :ca_not_registered instead of :unknown_ca; the companion commit a49fb8875f3aab40062881028ef4e406d985aaa9 carries the related SSL/certificate handling changes, and the advisory is at https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-8j48-4mg5-7v6v. If upgrading cannot be done immediately, set DEVICE_SSL_CACERTFILE to a bundle that contains no public roots and no root that signs device certificates - for example a file holding a single self-signed certificate generated for the purpose - so that no device chain can terminate at a trusted root and an unregistered-CA certificate is refused once; the vendor verified against 2.5.3 that registered devices still connect this way (a certificate already on file, a new certificate from a registered CA sent alone or with its CA, and a new certificate from a registered intermediate whose root is not in the bundle), the trade-off being that the device endpoint no longer trusts any public CA for validation. Because the loop is a tail call that never returns to the process mailbox, timeouts, socket closure and supervisor restarts do not clear it: restart each affected node to terminate handshakes already stuck.

Affected VersionsENISA

nerves_hub_web 1.0.0 <2.5.4
nerves_hub_web a49fb8875f3aab40062881028ef4e406d985aaa9 <064e78cc189dd9b87748746f44179632a52ddf58

Affected Packages

euvd nerves_hub_web fix: 2.5.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-835 infinite loop produced by a semantic collision between NervesHub's certificate callback and Erlang/OTP's TLS path validation. NervesHub supplies a verify_fun to :ssl; at v2.5.3, check_known_ca/1 in lib/nerves_hub/ssl.ex returns :unknown_ca when the certificate's signer is not among the registered CAs, and do_verify/2 hands that to :ssl as {:fail, :unknown_ca}. OTP reserves unknown_ca for a path with no trust anchor, so in ssl_handshake:path_validate/11 the {bad_cert, unknown_ca} branch searches for a cross-signed alternative root and validates again - and unlike the root_cert_expired branch it does not add the root it just tried to InvalidatedList. When the chain ends at a self-signed root that is in the endpoint's trust store, OTP rediscovers the same root, calls verify_fun again, receives unknown_ca again, and repeats; the recursion is a tail call, so the stack never grows and the process never crashes and never returns to its mailbox, meaning the handshake timeout and the closed socket are never observed. The device endpoint's trust store defaults to CAStore.file_path() (config/runtime.exs:489) unless DEVICE_SSL_CACERTFILE is set, so a public-CA certificate stands in for a private root; conversely, a chain ending at a root outside the trust store is refused once and does not loop. The vendor confirmed the OTP behaviour on OTP 28.3, 29.0 and 29.1 (older releases untested); the fix in 2.5.4 introduces a distinct :ca_not_registered refusal reason and never surfaces :unknown_ca from verify_fun, so OTP terminates the handshake on the first refusal.

Know when Nerves Hub Web gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 8.2 HIGH
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
vuln.today AI 7.5 HIGH

Remote, unauthenticated TLS handshake (AV:N/PR:N/UI:N); the precondition of a trusted-root client cert is trivially met under the default CAStore trust store, so AC:L; impact is availability-only (C:N/I:N/A:H).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

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

This issue affects nerves_hub: from 1.0.0 before 2.5.4.

Technical POC Analysis

CWE-835, Loop with Unreachable Exit Condition.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-125275 is a high-severity unauthenticated denial-of-service vulnerability in NervesHub's device TLS endpoint that allows anyone with a public-CA client certificate to take the entire NervesHub service offline with a handful of connections. Affected organizations face disruption of all device management and firmware update operations, as a single stuck handshake can saturate hosts and the shared database, requiring manual restarts of each node to recover.

Business Impact: High
Compensating Controls

Apply vendor patch: 2.5.4

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche IoT/embedded fleet manager for the Elixir/Nerves ecosystem
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy