Skip to main content
← All vulnerabilities
CVE-2024-7318GHSA-XMMM-JW76-Q7VGBIT-KEYCLOAK-2024-7318

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 24.0.7, 25.0.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • keycloak-core

    fixed in 24.0.7; From 25.0.0 · fixed in 25.0.4

  • keycloak-core

    Version range not reported

  • rhbk/keycloak-operator-bundle

    Version range not reported

  • rhbk/keycloak-rhel9

    Version range not reported

  • rhbk/keycloak-rhel9-operator

    Version range not reported

  • org.keycloak:keycloak-coreMaven

    fixed in 24.0.7

  • org.keycloak:keycloak-coreMaven

    From 25.0.0 · fixed in 25.0.4

References 4

access.redhat.com

bugzilla.redhat.com