Infinite loop in nerves_hub_web device certificate verification
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-835.
Summary
NervesHub nerves_hub_web from 1.0.0 before 2.5.4 has an infinite loop (CWE-835) in device certificate verification. A client certificate whose CA is not registered in NervesHub makes the TLS handshake validate again without end. An unauthenticated remote attacker can cause denial of service, since the handshake keeps running after the client disconnects until the node restarts. A certificate from a public CA suffices when the device endpoint uses the default trust store.
Written with Claude Haiku 5.5 from the sources below · 2026-11-17
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nerves-hub | nerves_hub_web | 1.0.0 to before 2.5.4 | 2.5.4 | Patch available | CNA |
| nerves-hub | nerves_hub_web | 1.0.0 to before 2.5.4 | 2.5.4 | Patch available | CNA |
- nerves_hub_web Vendornerves-hub Affected 1.0.0 to before 2.5.4 Fixed in 2.5.4 Patch available CNA
- nerves_hub_web Vendornerves-hub Affected 1.0.0 to before 2.5.4 Fixed in 2.5.4 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:* | — | — | nerves-hub |
- cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:* Versions — — ·nerves-hub
Remediation
Upgrade nerves_hub_web to version 2.5.4, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-17
- Fix · CNA nerves_hub_web (nerves-hub) Fixed in 2.5.4
- Fix · CNA nerves_hub_web (nerves-hub) Fixed in 2.5.4
Timeline
- 2026-11-17 Threatist record created from CVE-2026-125275
References
More nerves-hub vulnerabilities
- TI-2026-87598 Session fixation in NervesHub CLI login exposes user API tokens CVSS 4.0CRITICAL 9.4
- TI-2026-87601 Mass assignment in NervesHub lets users write into other organizations CVSS 4.0HIGH 8.6
- TI-2026-87603 Improper authentication in NervesHub Web exposes accounts via email CVSS 4.0HIGH 7.4
- TI-2026-87600 Incorrect authorization in NervesHub Web lets view users move devices CVSS 4.0HIGH 7.1
- TI-2026-87599 Missing authorization in nerves_hub_web lets viewers change devices CVSS 4.0MEDIUM 5.3
- TI-2025-39548 NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force CVSS 4.0CRITICAL 9.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences