CVE-2025-64097 Details
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.
A vulnerability in NervesHub's API token management was identified, allowing for brute-force attacks on user API tokens. This issue was present in NervesHub versions 1.0.0 through 2.2.9. The vulnerability arose because the format of the tokens was predictable and included user-identifiable components, making them easy to guess or enumerate. As a result, attackers could potentially gain unauthorized access to user accounts or API actions protected by these tokens.
Users can upgrade to NervesHub version 2.3.0, which addresses this vulnerability by introducing strong, cryptographically secure tokens, hashing tokens before database storage, and context-aware token management. For those unable to upgrade immediately, temporarily firewalling access to the NervesHub server can help limit exposure.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nerves-hub/nerves_hub_web/pull/2024 | [email protected] | Issue TrackingPatch |
| https://github.com/nerves-hub/nerves_hub_web/releases/tag/v2.3.0 | [email protected] | ProductRelease Notes |
| https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-m9vj-776q-vc8m | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-330 | Use of Insufficiently Random Values | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nerves-hub nerveshub | >= 1.0.0, < 2.3.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 17, 2026 | Initial Analysis | [email protected] |
| Jan 22, 2026 | New CVE Received | [email protected] |