{"id":"CVE-2023-6787","aliases":["GHSA-c9h6-v78w-52wj"],"url":"https://o3.security/vulnerability/CVE-2023-6787","summary":"Keycloak: session hijacking via re-authentication","details":"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","modified":"2026-08-12T03:51:09.137780325Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","fixedVersion":"22.0.10"},{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","fixedVersion":"24.0.3"}],"fix":null,"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1867"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1868"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2023-6787"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6787.json"},{"type":"ADVISORY","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6787"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2254375"},{"type":"PACKAGE","url":"https://github.com/keycloak/keycloak"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:09.137780325Z"}}