FICHE CVE

CVE-2026-49852

Publiée le 2026-07-17 · Dernière modification le 2026-10-24

🇫🇷 EN BREF

Les applications utilisant la bibliothèque Python `joserfc` pour la vérification des jetons JWT sont affectées si elles fournissent une chaîne vide ou la valeur `None` comme clé de vérification. Un attaquant distant non authentifié peut contourner l'authentification en forgeant ses propres jetons signés HMAC, que le système acceptera à tort comme valides. Cette exploitation est facile à exécuter et ne nécessite aucune interaction de l'utilisateur ni de privilèges particuliers.

CVSS 4.08.7 ÉLEVÉE
Publiée2026-07-17
Dernière modification2026-10-24

DÉTAIL DU VECTEUR CVSS

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

RÉFÉRENCES

Description officielle du NVD (en anglais)

joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.6.8, joserfc.jwt.decode accepts attacker-forged HMAC-signed tokens when the caller-supplied verification key is the empty string or None, because HMACAlgorithm.sign and HMACAlgorithm.verify in src/joserfc/_rfc7518/jws_algs.py pass the output of OctKey.get_op_key(...) to hmac.new(...) and OctKey.import_key in src/joserfc/_rfc7518/oct_key.py only emits a SecurityWarning for keys shorter than 14 bytes without rejecting zero-length input. This issue is fixed in version 1.6.8.