CVE-2025-64097

CRITICAL

NervesHub 1.0.0-2.2.9 - Predictable API Token Generation via Insufficiently Random Values

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Issue Tracking, Patch x_refsource_misc
https://github.com/nerves-hub/nerves_hub_web/pull/2024

Scores

CVSS v3 9.8
EPSS 0.0042
EPSS Percentile 33.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-330
Status published
Products (1)
nerves-hub/nerveshub 1.0.0 - 2.3.0
Published Jan 22, 2026
Tracked Since Feb 18, 2026