> CVE-2024-7318 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2024-09-09 19:15
MODIFIED
2024-10-07 20:15
CVSS_SCORE V3
4.8
EPSS (Prob. Exploit)
0.39%
Top 66.3%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-04 OSV 🔗 2026-11-08

> DESCRIPTION

A vulnerability was found in Keycloak. Expired OTP codes are still usable when using FreeOTP when the OTP token period is set to 30 seconds (default). Instead of expiring and deemed unusable around 30 seconds in, the tokens are valid for an additional 30 seconds totaling 1 minute. A one time passcode that is valid longer than its expiration time increases the attack window for malicious actors to abuse the system and compromise accounts. Additionally, it increases the attack surface because at any given time, two OTPs are valid.

> AFFECTED_PRODUCTS

Red Hat - Build Of Keycloak
>= 22.0 < 24.0.7

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-xmmm-jw76-q7vg MODERATE

Keycloaks's One Time Passcode (OTP) is valid longer than expiration timeSeverity

AFFECTED PACKAGES:
MAVEN / org.keycloak:keycloak-core
>= 25.0.0, < 25.0.4
Fixed in: 25.0.4
MAVEN / org.keycloak:keycloak-core
< 24.0.7
Fixed in: 24.0.7

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverity

AFFECTED PACKAGES:
Unknown / Unknown
13 versions affected
ALIASES:
BIT-keycloak-2024-7318, GHSA-xmmm-jw76-q7vg

> HISTORIQUE DES MODIFICATIONS

Première apparition
09/09/2024 19:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:54
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME