Live threats

All CVEs / Redhat

CVE-2024-7318Redhat Build Of Keycloak

Medium 4.8 No auth needed

Priority
44
CVSS 3.1
4.8
EPSS
0.4%
probability of exploitation in 30 days · percentile 29
Auth required
No
Published
Sep 9, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-324
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Build Of Keycloak.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.keycloak:keycloak-core < 24.0.7 24.0.7 —
Maven org.keycloak:keycloak-core ≥ 25.0.0 < 25.0.4 25.0.4 —

Per OSV / GitHub Advisories (GHSA-xmmm-jw76-q7vg). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
redhatbuild_of_keycloak≥ 22.0 < 24.0.7

Official sources

References

Links published by the sources. Open them with care.