FICHE CVE

CVE-2025-64097

Publiée le 2026-01-22 · Dernière modification le 2026-06-17

🇫🇷 EN BREF

Les installations de NervesHub antérieures à la version 2.3.0 sont affectées par des jetons API dont le format est prévisible. Un attaquant non authentifié disposant d'un accès réseau peut utiliser la force brute ou deviner ces jetons pour obtenir un accès non autorisé aux comptes utilisateurs et gérer les mises à jour du micrologiciel des appareils connectés. Comme les jetons manquent d'aléatoire cryptographique, cette attaque peut être effectuée à distance sans aucune interaction de l'utilisateur.

CVSS 4.09.5 CRITIQUE
Type de faiblesse
Publiée2026-01-22
Dernière modification2026-06-17

DÉTAIL DU VECTEUR CVSS

Vecteur d'attaqueRéseau
Complexité d'attaqueFaible
Prérequis d'attaquePrésent
Privilèges requisAucun
Interaction utilisateurAucune
Confidentialité (système vulnérable)Élevée
Intégrité (système vulnérable)Élevée
Disponibilité (système vulnérable)Aucune
Confidentialité (système subséquent)Élevée
Intégrité (système subséquent)Élevée
Disponibilité (système subséquent)Élevée

RÉFÉRENCES

Description officielle du NVD (en anglais)

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.