CVE-2025-64097
published critical CVSS 4.0 · 9.5NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nerves-hub | — | nerves_hub_web>= 1.0.0, < 2.3.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.5 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nerves-hub | nerves_hub_web | >= 1.0.0, < 2.3.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-330 CWE-330: Use of Insufficiently Random Values
References
3Provider assertions
2GitHub_M · cna
NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 37a678a5a691bd35fe6da0a58c8fc516fc786450ffc46a6789435bf25628a8ed
- Ingested
- 23 Sep 2026, 08:55:54 UTC
- Source record
- Official CVE record