You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
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.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
[{"defaultStatus":"unaffected","collectionURL":"https://github.com/keycloak/keycloak","packageName":"keycloak-core","versions":[{"version":"0","lessThan":"24.0.7","versionType":"semver","status":"affected"},{"version":"25.0.0","lessThan":"25.0.4","versionType":"semver","status":"affected"}]},{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","packageName":"keycloak-core","cpes":["cpe:/a:redhat:build_keycloak:24"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","defaultStatus":"affected","collectionURL":"https://catalog.redhat.com/software/containers/","packageName":"rhbk/keycloak-operator-bundle","cpes":["cpe:/a:redhat:build_keycloak:24::el9"],"versions":[{"version":"24.0.7-4","lessThan":"*","versionType":"rpm","status":"unaffected"}]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","defaultStatus":"affected","collectionURL":"https://catalog.redhat.com/software/containers/","packageName":"rhbk/keycloak-rhel9","cpes":["cpe:/a:redhat:build_keycloak:24::el9"],"versions":[{"version":"24-16","lessThan":"*","versionType":"rpm","status":"unaffected"}]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","defaultStatus":"affected","collectionURL":"https://catalog.redhat.com/software/containers/","packageName":"rhbk/keycloak-rhel9-operator","cpes":["cpe:/a:redhat:build_keycloak:24::el9"],"versions":[{"version":"24-16","lessThan":"*","versionType":"rpm","status":"unaffected"}]}]
Reanalysis by NIST10/07/2024 4:15:17 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Removed
CVSS V3.1
NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Initial Analysis by NIST9/20/2024 12:02:06 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Added
CPE Configuration
OR
*cpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:* versions from (including) 22.0 up to (excluding) 24.0.7
Changed
Reference Type
https://access.redhat.com/errata/RHSA-2024:6502 No Types Assigned
New CVE Received from Red Hat, Inc.9/09/2024 3:15:14 PM
Action
Type
Old Value
New Value
Added
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.
Added
CVSS V3.1
Red Hat, Inc. AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Added
CWE
Red Hat, Inc. CWE-324
Added
Reference
Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6502 [No types assigned]
Added
Reference
Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:6503 [No types assigned]
Added
Reference
Red Hat, Inc. https://access.redhat.com/security/cve/CVE-2024-7318 [No types assigned]
Added
Reference
Red Hat, Inc. https://bugzilla.redhat.com/show_bug.cgi?id=2301876 [No types assigned]
Quick Info
CVE Dictionary Entry: CVE-2024-7318 NVD
Published Date: 09/09/2024 NVD
Last Modified: 06/17/2026
Source: Red Hat, Inc.