{"id":"CVE-2022-3916","aliases":["GHSA-97g8-xfvw-q4hg"],"url":"https://o3.security/vulnerability/CVE-2022-3916","summary":"Keycloak: session takeover with oidc offline refreshtokens","details":"An issue was discovered in Keycloak when using a client with the `offline_access` scope. Reuse of session ids across root and user authentication sessions and a lack of root session validation enabled attackers to resolve a user session attached to a different previously authenticated user.\n\nThis issue most affects users of shared computers. Suppose a user logs out of their account (without clearing their cookies) in a mobile app or similar client that includes the `offline_access` scope, and another user authenticates to the application. In that case, it will share the same root session id, and when utilizing the refresh token, they will be issued a token for the original user.","published":"2023-09-20T14:28:52.089Z","modified":"2026-10-28T02:30:32.694820456Z","cvss":{"score":6.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-parent","fixedVersion":"20.0.2"}],"fix":null,"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://access.redhat.com/jbossnetwork/restricted/listSoftware.html"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2022:8961"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2022:8962"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2022:8963"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2022:8964"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2022:8965"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1043"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1044"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1045"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1047"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1049"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2022-3916"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3916.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3916"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2141404"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-97g8-xfvw-q4hg"},{"type":"PACKAGE","url":"https://github.com/keycloak/keycloak"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:32.694820456Z"}}