CVE-2026-125275
High 8.2No known exploitationFix availableA device certificate whose CA isn't registered can keep a TLS handshake running forever
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 34% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-835
Patching and mitigation
- Patch status
- Fix available (source: CVE record (EEF))
- Fix documented (source date)
- Mitigation
- Set DEVICE_SSL_CACERTFILE to a bundle that holds no public root and no root that signs device certificates, for example a file with one self-signed certificate made for this purpose. A certificate from an unregistered CA is then refused once and the handshake ends. Devices whose certificate or CA is registered in NervesHub continue to connect. Restarting a node ends the handshakes that are already stuck on it. Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| nerves-hub | nerves_hub_web | from 1.0.0 before 2.5.4 | 2.5.4 | CVE Program |
| nerves-hub | nerves_hub_web | from 1.0.0 before 2.5.4 | 2.5.4 | CVE Program |
| nerves-hub | nerves_hub_web | from a49fb8875f3aab40062881028ef4e406d985aaa9 before 064e78cc189dd9b87748746f44179632a52ddf58 | 064e78cc189dd9b87748746f44179632a52ddf58 | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (EEF)
Vendor guidance and references
- Fix commit 064e78c in nerves-hub/nerves_hub_web (opens in a new tab)patch
- A device certificate whose CA isn't registered can keep a TLS handshake running forever (opens in a new tab)related, vendor-advisory
- EEF CNA record for CVE-2026-125275 (opens in a new tab)related
- Introducing commit a49fb88 in nerves-hub/nerves_hub_web (opens in a new tab)related
- OSV record EEF-CVE-2026-125275 (opens in a new tab)related