# CVE-2025-64097: NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force

- Severity: Critical 9.5 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:H`
- 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.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-01-22T14:57:00.362Z
- Modified: 2026-06-17T09:53:49.060Z
- Weaknesses: CWE-330
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

NervesHub is a web service that allows users to manage over-the-air (OTA) firmware updates of devices in the field. A vulnerability present starting in version 1.0.0 and prior to version 2.3.0 allowed attackers to brute-force user API tokens due to the predictable format of previously issued tokens. Tokens included user-identifiable components and were not cryptographically secure, making them susceptible to guessing or enumeration. The vulnerability could have allowed unauthorized access to user accounts or API actions protected by these tokens. A fix is available in version 2.3.0 of NervesHub. This version introduces strong, cryptographically-random tokens using `:crypto.strong_rand_bytes/1`, hashing of tokens before database storage to prevent misuse even if the database is compromised, and context-aware token storage to distinguish between session and API tokens. There are no practical workarounds for this issue other than upgrading. In sensitive environments, as a temporary mitigation,
firewalling access to the NervesHub server can help limit exposure until an upgrade is possible.

(As written by CVE List.)

## Affected

- nerves-hub nerves_hub_web: >= 1.0.0, < 2.3.0
- nerves-hub nerveshub: from 1.0.0 before 2.3.0

## Every score

- GitHub_M: CVSS:4.0 9.5 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-m9vj-776q-vc8m> (vendor-advisory)
- <https://github.com/nerves-hub/nerves_hub_web/pull/2024> (issue-tracking, patch)
- <https://github.com/nerves-hub/nerves_hub_web/releases/tag/v2.3.0> (product, release-notes)

## Sources

- CVE List: [CVE-2025-64097](https://www.cve.org/CVERecord?id=CVE-2025-64097), CVE Terms of Use, modified 2026-01-22
- NVD: [CVE-2025-64097](https://nvd.nist.gov/vuln/detail/CVE-2025-64097), Public domain, modified 2026-06-17

---

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