4.8

CVE-2024-7318: redhat build_of_keycloak Use of a Key Past its Expiration Date

CVSS: 4.8v3.1MediumAnalyzed
AliasesCGA-4gcr-r67j-3wxfCGA-7jmq-7w79-m6j7CGA-8m5j-5qcw-2f2w
Published 09-09-2024Last modified 26-01-2026

Vulnerability summary

CVE-2024-7318 is a medium (CVSS 4.8) Use of a Key Past its Expiration Date vulnerability in redhat build_of_keycloak. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 31.9% of scored vulnerabilities.

Overall risk
19/100
0100
Low · default modelHow is this calculated?
CVSS score
4.8/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.39%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 2

Timeline

  1. 09-09-2024
    PublishedVulnerability first disclosed.
  2. 26-01-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

32%

Versus all other CVEs

30-day change

0.00 pp

From 0.39% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.39%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard3 products
  • keycloak-config-cli< 6.4.0-r1
  • keycloak-config-cli-compat< 6.4.0-r1
  • keycloak-config-cli-iamguarded-compat< 6.4.0-r1
Wolfi3 products
  • keycloak-config-cli< 6.4.0-r1
  • keycloak-config-cli-compat< 6.4.0-r1
  • keycloak-config-cli-iamguarded-compat< 6.4.0-r1
Org.keycloak1 product
  • keycloak-core< 24.0.7 | ≥ 25.0.0, < 25.0.4
Redhat1 product

4 vendors · 8 products

References

10 links