CVE Tools

CVE-2024-7318

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

Published: Sep 9, 2024Updated: Oct 7, 2024 Sources: CVE List NVD GHSACWE-324
4.8CVSSMEDIUM

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 Vector Breakdown

AV:NAC:HPR:NUI:NS:UC:LI:LA:N
Exploitability
AV:NAttack Vector
Network
AC:HAttack Complexity
High
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:LConfidentiality
Low
I:LIntegrity
Low
A:NAvailability
None

Weaknesses

Affected Products

red hatcommercialUSOperating Systemsaka red hat
redhatcommercialUSOperating Systemsaka red hat
mavenpackage-ecosystemOSS Libraries

Exploitability

Official Patch Available

References

and 4 more references View all →

Timeline

Published
Sep 9, 2024
Last Updated
Oct 7, 2024

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2024-7318 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows