Skip to content
Heist/ feed
Back to feed
Critical

NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-64097
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:12 UTC · Revision 1

Source evidence

NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force

core-osv · Original source

Published 22 Jan 2026, 14:57 UTC

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.

osv:CVE-2025-64097
Complete source record
{
  "id": "1c446a645d9e93f8f49da051760785c06399eccac5845fddbc296f8387025544",
  "url": "https://osv.dev/vulnerability/CVE-2025-64097",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force",
    "summary": "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.",
    "evidence": "osv:CVE-2025-64097",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-64097",
      "aliases": [
        "CVE-2025-64097",
        "GHSA-m9vj-776q-vc8m"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nerves-hub/nerves_hub_web",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c065e81ddbc35b507a379b38076310a9e3c7866d"
                },
                {
                  "fixed": "a493bbe8e830ef52d6d2f01cd7d6ad6d53b67fcb"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "2.3.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a493bbe8e830ef52d6d2f01cd7d6ad6d53b67fcb"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.3.0"
                  },
                  {
                    "cpe": "cpe:2.3:a:nerves-hub:nerveshub:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "2.3.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-64097.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.154396099Z",
      "provider": "osv",
      "references": [
        "https://github.com/nerves-hub/nerves_hub_web/releases/tag/v2.3.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64097.json",
        "https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-m9vj-776q-vc8m",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-64097",
        "https://github.com/nerves-hub/nerves_hub_web/pull/2024"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-330"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64097.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-64097",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488159,
  "published_at": "2026-01-22T14:57:00.362+00:00"
}