CVE-2024-7318

Source
https://cve.org/CVERecord?id=CVE-2024-7318
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-7318.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-7318
Aliases
Related
Published
2024-09-09T18:50:36.583Z
Modified
2026-07-16T03:47:06.140898397Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverity
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-324"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7318.json",
    "cna_assigner": "redhat"
}
References

Affected packages

Git / github.com/keycloak/keycloak

Affected ranges

Type
GIT
Repo
https://github.com/keycloak/keycloak
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Database specific
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "24.0.7"
        },
        {
            "introduced": "25.0.0"
        },
        {
            "fixed": "25.0.4"
        }
    ]
}

Affected versions

1.*
1.0-alpha-1
1.0-alpha-1-12062013
1.0-alpha-2
1.0-alpha-3
1.0-beta-1
1.0-beta-2
1.0-beta-4
1.0-final
1.0-rc-1
1.0.0.Final
1.1.0.Beta2
1.3.0.Final
2.*
2.4.0.Test

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-7318.json"