{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-7318","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","state":"PUBLISHED","assignerShortName":"redhat","dateReserved":"2024-07-31T03:04:15.355Z","datePublished":"2024-09-09T18:50:36.583Z","dateUpdated":"2026-01-26T15:11:07.763Z"},"containers":{"cna":{"title":"Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverity","metrics":[{"other":{"content":{"value":"Low","namespace":"https://access.redhat.com/security/updates/classification/"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.8,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"format":"CVSS"}],"descriptions":[{"lang":"en","value":"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.\r\nA 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."}],"affected":[{"versions":[{"status":"affected","version":"0","lessThan":"24.0.7","versionType":"semver"},{"status":"affected","version":"25.0.0","lessThan":"25.0.4","versionType":"semver"}],"packageName":"keycloak-core","collectionURL":"https://github.com/keycloak/keycloak","defaultStatus":"unaffected"},{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","defaultStatus":"unaffected","packageName":"keycloak-core","cpes":["cpe:/a:redhat:build_keycloak:24"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","collectionURL":"https://catalog.redhat.com/software/containers/","packageName":"rhbk/keycloak-operator-bundle","defaultStatus":"affected","versions":[{"version":"24.0.7-4","lessThan":"*","versionType":"rpm","status":"unaffected"}],"cpes":["cpe:/a:redhat:build_keycloak:24::el9"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","collectionURL":"https://catalog.redhat.com/software/containers/","packageName":"rhbk/keycloak-rhel9","defaultStatus":"affected","versions":[{"version":"24-16","lessThan":"*","versionType":"rpm","status":"unaffected"}],"cpes":["cpe:/a:redhat:build_keycloak:24::el9"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","collectionURL":"https://catalog.redhat.com/software/containers/","packageName":"rhbk/keycloak-rhel9-operator","defaultStatus":"affected","versions":[{"version":"24-16","lessThan":"*","versionType":"rpm","status":"unaffected"}],"cpes":["cpe:/a:redhat:build_keycloak:24::el9"]}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:6502","name":"RHSA-2024:6502","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6503","name":"RHSA-2024:6503","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-7318","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2301876","name":"RHBZ#2301876","tags":["issue-tracking","x_refsource_REDHAT"]}],"datePublic":"2024-09-09T13:55:00.000Z","problemTypes":[{"descriptions":[{"cweId":"CWE-324","description":"Use of a Key Past its Expiration Date","lang":"en","type":"CWE"}]}],"x_redhatCweChain":"CWE-324: Use of a Key Past its Expiration Date","timeline":[{"lang":"en","time":"2024-07-31T03:04:38.000Z","value":"Reported to Red Hat."},{"lang":"en","time":"2024-09-09T13:55:00.000Z","value":"Made public."}],"credits":[{"lang":"en","value":"This issue was discovered by Todd Cullum (Red Hat)."}],"providerMetadata":{"orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","shortName":"redhat","dateUpdated":"2026-01-26T15:11:07.763Z"},"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-09T19:08:16.666351Z","id":"CVE-2024-7318","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-09T19:08:33.567Z"}}]}}