{
  "threat_severity" : "Low",
  "public_date" : "2024-09-09T13:55:00Z",
  "bugzilla" : {
    "description" : "keycloak-core: One Time Passcode (OTP) is valid longer than expiration timeSeverity",
    "id" : "2301876",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2301876"
  },
  "cvss3" : {
    "cvss3_base_score" : "4.8",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
    "status" : "verified"
  },
  "cwe" : "CWE-324",
  "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.\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.", "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.\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." ],
  "statement" : "This finding was marked Moderate because it is a 2x increase, which is not too long.\nRed Hat has evaluated this vulnerability and it only affects the Red Hat Build of Keycloak (RHBK).",
  "acknowledgement" : "This issue was discovered by Todd Cullum (Red Hat).",
  "affected_release" : [ {
    "product_name" : "Red Hat Build of Keycloak",
    "release_date" : "2024-09-09T00:00:00Z",
    "advisory" : "RHSA-2024:6503",
    "cpe" : "cpe:/a:redhat:build_keycloak:24",
    "package" : "keycloak-core"
  }, {
    "product_name" : "Red Hat build of Keycloak 24",
    "release_date" : "2024-09-09T00:00:00Z",
    "advisory" : "RHSA-2024:6502",
    "cpe" : "cpe:/a:redhat:build_keycloak:24::el9",
    "package" : "rhbk/keycloak-operator-bundle:24.0.7-4"
  }, {
    "product_name" : "Red Hat build of Keycloak 24",
    "release_date" : "2024-09-09T00:00:00Z",
    "advisory" : "RHSA-2024:6502",
    "cpe" : "cpe:/a:redhat:build_keycloak:24::el9",
    "package" : "rhbk/keycloak-rhel9:24-16"
  }, {
    "product_name" : "Red Hat build of Keycloak 24",
    "release_date" : "2024-09-09T00:00:00Z",
    "advisory" : "RHSA-2024:6502",
    "cpe" : "cpe:/a:redhat:build_keycloak:24::el9",
    "package" : "rhbk/keycloak-rhel9-operator:24-16"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-7318\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-7318" ],
  "name" : "CVE-2024-7318",
  "csaw" : false
}