Cyber Resilience

CVE-2024-7318

Redhat Build Of Keycloak 22.0 – 24.0.7

Published
09 September 2024
Modified
07 October 2024
Patch / advisory
CVSS Score v3.1 4.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS Score 0.0039 32th percentile
Risk Priority 42 floored blend · peak EPSS

Summary

CVE-2024-7318 is a medium-severity Use of a Key Past its Expiration Date (CWE-324) vulnerability in Redhat Build Of Keycloak. Its CVSS base score is 4.8 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Brute Force (T1110); ranked at the 32th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to IA-5 (Authenticator Management) and SC-12 (Cryptographic Key Establishment and Management) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1110 Brute Force Credential Access
Adversaries may use brute force techniques to gain access to accounts when passwords are unknown or when password hashes are obtained.
T1110.002 Password Cracking Credential Access
Adversaries may use password cracking to attempt to recover usable credentials, such as plaintext passwords, when credential material such as password hashes are obtained.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-4634Same product: Redhat Build Of Keycloak
CVE-2026-37978Same product: Redhat Build Of Keycloak
CVE-2026-7571Same product: Redhat Build Of Keycloak
CVE-2025-7784Same product: Redhat Build Of Keycloak
CVE-2026-7500Same product: Redhat Build Of Keycloak
CVE-2026-9792Same product: Redhat Build Of Keycloak
CVE-2026-4628Same product: Redhat Build Of Keycloak
CVE-2026-9086Same product: Redhat Build Of Keycloak
CVE-2026-11800Same product: Redhat Build Of Keycloak
CVE-2026-12388Same product: Redhat Build Of Keycloak

Affected Assets

redhat
build of keycloak
22.0 — 24.0.7

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

SC-12 requires establishing and managing cryptographic keys including distribution, storage, access and destruction, which directly enforces expiration and rotation policies.

IA-5 requires managing authenticators (including passwords and tokens) with verification, distribution and revocation steps that cover expiration enforcement.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

ID.AM-08 partial match
prevents

Lifecycle management of cryptographic assets directly includes enforcing key expiration and rotation.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Use-of-cryptography control explicitly covers key lifecycle management including expiration and rotation.

prevents

Authentication information policy should mandate key rotation and expiry, directly preventing use of expired keys.

mitigates

Change-management processes can trigger key rotation, but do not inherently enforce cryptographic expiry rules.

degrades

Secure authentication requires cryptographic keys to be replaced before expiry, mitigating the weakness.

References