A device certificate whose CA isn't registered can keep a TLS handshake running forever
- State
- Published
- Severity
- 8.2 High
- Published
- Nov 17, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 11, 2026
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.
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.
| Product | Versions |
|---|---|
| nerves_hub_web nerves-hub | 1.0.0 to before 2.5.4 Affected |
| nerves_hub_web nerves-hub | 1.0.0 to before 2.5.4 Affected |
| nerves_hub_web nerves-hub | a49fb8875f3aab40062881028ef4e406d985aaa9 to before 064e78cc189dd9b87748746f44179632a52ddf58 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.2 High | EEF |
Weaknesses
- CWE-835 Loop with Unreachable Exit Condition
References
- A device certificate whose CA isn't registered can keep a TLS handshake running foreverVendor AdvisoryRelated
- EEF CNA record for CVE-2026-125275Related
- OSV record EEF-CVE-2026-125275Related
- Introducing commit a49fb88 in nerves-hub/nerves_hub_webRelated
- Fix commit 064e78c in nerves-hub/nerves_hub_webPatch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.