{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-6787","id":"CVE-2023-6787","title":"Keycloak: session hijacking via re-authentication","description":"A flaw was found in Keycloak that occurs from an error in the re-authentication mechanism within org.keycloak.authentication. This flaw allows hijacking an active Keycloak session by triggering a new authentication process with the query parameter \"prompt=login,\" prompting the user to re-enter their credentials. If the user cancels this re-authentication by selecting \"Restart login,\" an account ta","descriptionLong":"A flaw was found in Keycloak that occurs from an error in the re-authentication mechanism within org.keycloak.authentication. This flaw allows hijacking an active Keycloak session by triggering a new authentication process with the query parameter \"prompt=login,\" prompting the user to re-enter their credentials. If the user cancels this re-authentication by selecting \"Restart login,\" an account takeover may occur, as the new session, with a different SUB, will possess the same SID as the previous session.","published":"2024-04-25T16:02:32.916Z","updated":"2026-11-17T07:01:51.771759031Z","reserved":"2023-12-13T16:22:00.344Z","status":"Analyzed","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"redhat"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"redhat"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"redhat.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["keycloak","Red Hat build of Keycloak 22","Red Hat build of Keycloak 22.0.10","Red Hat Single Sign-On 7"],"affectedProducts":[{"vendor":"","product":"keycloak","defaultStatus":null,"versions":[{"status":"affected","version":"0","lessThan":"22.0.10","versionType":"semver"},{"status":"affected","version":"0","lessThan":"24.0.3","versionType":"semver"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","defaultStatus":"affected","versions":[{"version":"22.0.10-1","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","defaultStatus":"affected","versions":[{"version":"22-13","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","defaultStatus":"affected","versions":[{"version":"22-16","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 22.0.10","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","defaultStatus":"affected","versions":[],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","ranges":["<22.0.10",">=23.0.0 <24.0.3"],"fixed":["22.0.10","24.0.3"],"advisory":"GHSA-c9h6-v78w-52wj"}],"cwes":["CWE-287","CWE-384","CWE-613"],"aliases":["GHSA-c9h6-v78w-52wj"],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:1867","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2024:1868","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-6787","tags":["vdb-entry","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2254375","tags":["issue-tracking","x_refsource_REDHAT","x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj","tags":["Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/downloads/content/package-browser/","tags":["web"]},{"url":"https://catalog.redhat.com/software/containers/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6787.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6787","tags":["advisory"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00744,"epssPercentile":0.55532,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-6787","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6787","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-6787","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c9h6-v78w-52wj","ok":true,"note":"GHSA-c9h6-v78w-52wj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-6787","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}