Vulnerabilities

CVE-2024-7318

Medium 4.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2024-09-09
Last modified
2026-06-17
Assigned by
secalert@redhat.com
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.4 % higher than 32 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
org.keycloak keycloak-core (Maven) < 24.0.7 Affected
org.keycloak keycloak-core (Maven) ≥ 25.0.0, < 25.0.4 Affected
Redhat Build Of Keycloak ≥ 22.0, < 24.0.7 Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities