# CVE-2026-125275: A device certificate whose CA isn't registered can keep a TLS handshake running forever

- Severity: High 8.2 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-17T02:54:23.810Z
- Modified: 2026-11-25T06:30:19.161Z
- Also known as: EEF-CVE-2026-125275, GHSA-8j48-4mg5-7v6v
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

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

(As written by CVE List.)

## Affected

- nerves-hub: from 1.0.0 before 2.5.4
- nerves_hub: from 1.0.0 before 2.5.4
- nerves-hub/nerves_hub_web: from a49fb8875f3aab40062881028ef4e406d985aaa9 before 064e78cc189dd9b87748746f44179632a52ddf58
- https://github.com/nerves-hub/nerves_hub_web: from a49fb8875f3aab40062881028ef4e406d985aaa9 before 064e78cc189dd9b87748746f44179632a52ddf58

## Every score

- EEF: CVSS:4.0 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`
- Erlang Ecosystem Foundation: CVSS:4.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`

## References

- <https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-8j48-4mg5-7v6v> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-125275.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-125275> (related)
- <https://github.com/nerves-hub/nerves_hub_web/commit/a49fb8875f3aab40062881028ef4e406d985aaa9> (related, web)
- <https://github.com/nerves-hub/nerves_hub_web/commit/064e78cc189dd9b87748746f44179632a52ddf58> (fix, patch)

## Sources

- CVE List: [CVE-2026-125275](https://www.cve.org/CVERecord?id=CVE-2026-125275), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-125275](https://osv.dev/vulnerability/EEF-CVE-2026-125275), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-125275](https://nvd.nist.gov/vuln/detail/CVE-2026-125275), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-125275 · Whole record: https://cve.day/CVE-2026-125275.json · Rebuilt by cve.day 2026-11-25T22:59:50.958Z
