Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-7318

published medium CVSS 3.1 · 4.8

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

Published
09 Sep 2024, 18:50:36 UTC
Updated
26 Jan 2026, 15:11:07 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Not stated — keycloak-core0 to < 24.0.7 · 25.0.0 to < 25.0.4 · Other versions: unaffected Affected Not stated redhat
Red Hat — keycloak-coreRed Hat Build of Keycloak Unaffected Not required redhat
Red Hat — rhbk/keycloak-operator-bundleRed Hat build of Keycloak 24 · 24.0.7-4 and later · Other versions: affected Unaffected Not stated redhat
Red Hat — rhbk/keycloak-rhel9Red Hat build of Keycloak 24 · 24-16 and later · Other versions: affected Unaffected Not stated redhat
Red Hat — rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 24 · 24-16 and later · Other versions: affected Unaffected Not stated redhat

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.

en · redhat · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
4.8 / 10
Severity
medium
Provider
redhat · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
keycloak-core 0 to < 24.0.7 (affected · semver)25.0.0 to < 25.0.4 (affected · semver)Default: unaffected redhat · cna
Red Hat Red Hat Build of Keycloak Default: unaffected redhat · cna
Red Hat Red Hat build of Keycloak 24 24.0.7-4 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat build of Keycloak 24 24-16 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat build of Keycloak 24 24-16 and later (unaffected · rpm)Default: affected redhat · cna

Weaknesses

1
  • CWE-324 Use of a Key Past its Expiration Date (redhat · cna)

References

4
  • RHSA-2024:6502 https://access.redhat.com/errata/RHSA-2024:6502 vendor-advisory, x_refsource_REDHAT Contributors: redhat (cna)
  • RHSA-2024:6503 https://access.redhat.com/errata/RHSA-2024:6503 vendor-advisory, x_refsource_REDHAT Contributors: redhat (cna)
  • https://access.redhat.com/security/cve/CVE-2024-7318 vdb-entry, x_refsource_REDHAT Contributors: redhat (cna)
  • RHBZ#2301876 https://bugzilla.redhat.com/show_bug.cgi?id=2301876 issue-tracking, x_refsource_REDHAT Contributors: redhat (cna)

Provider assertions

2

redhat · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
80aa187ff582dd95d8f6e1e6e2e4e93e12f4f4d3eb60fcffeacf15bd87b2cda2
Ingested
23 Sep 2026, 08:33:35 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected