CVE-2025-64097

Source
https://cve.org/CVERecord?id=CVE-2025-64097
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-64097.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-64097
Aliases
  • GHSA-m9vj-776q-vc8m
Published
2026-01-22T14:57:00.362Z
Modified
2026-02-19T07:35:40.224811Z
Severity
  • 9.5 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-330"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64097.json"
}
References

Affected packages

Git / github.com/nerves-hub/nerves_hub_web

Affected ranges

Type
GIT
Repo
https://github.com/nerves-hub/nerves_hub_web
Events

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-64097.json"