{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-64097 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-64097 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-64097 is a critical authentication bypass vulnerability in nerves-hub nerves_hub_web, published on 22 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-64097 and fix it if it is affected.\n\nWhat it is: CVE-2025-64097 is a critical authentication bypass vulnerability in nerves-hub nerves_hub_web, published on 22 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-64097 in the wild and no public exploit code.\n\nAffected product: nerves-hub nerves_hub_web. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-64097/ (Markdown: https://insights.sbomify.com/CVE-2025-64097/index.md)","id":"CVE-2025-64097","markdown":"https://insights.sbomify.com/CVE-2025-64097/index.md","name":"CVE-2025-64097","record":{"aliases":["GHSA-m9vj-776q-vc8m"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"NervesHub web service","requires_auth":"none","summary":"Attackers can brute-force predictable API tokens to gain unauthorized access to user accounts and manage firmware updates.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nerveshub","vendor":"nerves-hub"}],"cvss":{"score":9.5,"severity":"critical","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-330","name":"Use of Insufficiently Random Values"}],"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,\nfirewalling access to the NervesHub server can help limit exposure until an upgrade is possible.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force","id":"CVE-2025-64097","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"auth_bypass","year":"2025"},"n_packages":0,"n_references":3,"next":{"headline":"FastDDS has Out-of-memory in readOctetVector via Manipulated DATA Submessage when DDS Security is enabled","id":"CVE-2025-64098"},"packages":[],"prev":{"headline":"CryptoLib vulnerable to Stack Buffer Overflow in Crypto_Key_Update due to missing TLV length check","id":"CVE-2025-64096"},"products":["nerves_hub_web"],"published":"2026-01-22","related":[{"cvss_score":9.4,"headline":"Improper authorization in device bulk actions and device update API allows cross-organization device control","id":"CVE-2026-28806","kev_date_added":null,"published":"2026-03-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-22","vendors":["nerves-hub"]},"summary":"Attackers can brute-force predictable API tokens to gain unauthorized access to user accounts and manage firmware updates.","url":"https://insights.sbomify.com/CVE-2025-64097/"}