CVE-2026-125275

8.2High

Published 17 Nov 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

8.2CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
CWE-835

What an attacker gets

Unauthenticated remote attackers can trigger a denial of service by exhausting node resources. They only need to present a TLS client certificate signed by a public CA that is not registered in NervesHub.

Root cause

An infinite loop occurs during TLS certificate verification when the Erlang/OTP SSL stack repeatedly attempts to validate a certificate chain against an unknown CA.

Affected versions

nerves_hub 1.0.0 through 2.5.3

CVSS v4.0 · 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

Fix & remediation

Upgrade to nerves_hub version 2.5.4 or later. If you cannot patch immediately, ensure DEVICE_SSL_CACERTFILE is explicitly configured to restrict the trust store to only known, registered CAs.

remediation — bash
$ mix deps.update nerves_hub

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-125275