Keycloaks's One Time Passcode (OTP) is valid longer than expiration timeSeverity
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.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.keycloak:keycloak-core | < 24.0.7, >= 25.0.0, < 25.0.4 | 24.0.7, 25.0.4 |
Verweise
- https://github.com/keycloak/keycloak/security/advisories/GHSA-xmmm-jw76-q7vg
- https://nvd.nist.gov/vuln/detail/CVE-2024-7318
- https://access.redhat.com/errata/RHSA-2024:6502
- https://access.redhat.com/errata/RHSA-2024:6503
- https://access.redhat.com/security/cve/CVE-2024-7318
- https://bugzilla.redhat.com/show_bug.cgi?id=2301876
- https://github.com/keycloak/keycloak
- CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N- Schwäche (CWE)
CWE-324- Plattform
- Java / Kotlin (Maven)
- Paket
org.keycloak:keycloak-core- Veröffentlicht
- 14.10.2024
- Aktualisiert
- 11.10.2026 13:20
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-xmmm-jw76-q7vg - CC BY 4.0
Schwachstellenhistorie: org.keycloak:keycloak-core
Alle veröffentlichten Schwachstellen dieses Pakets (Java / Kotlin (Maven)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 49
- Erste → letzte
- 10.2018 02.2025
- Ohne Fix
- 5
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Kritisch 3
- Hoch 14
- Mittel 31
- Niedrig 1
Veröffentlichungen pro Jahr
- 2018: 9
- 2019: 4
- 2020: 4
- 2021: 5
- 2022: 17
- 2023: 4
- 2024: 5
- 2025: 1
- 2026: 0
-
Keycloaks's One Time Passcode (OTP) is valid longer than expiration timeSeverity dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.