{"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":"A flaw was found in the offline_access scope in Keycloak. This issue would affect users of shared computers more (especially if cookies are not cleared), due to a lack of root session validation, and the reuse of session ids across root and user authentication sessions. This enables an attacker to resolve a user session attached to a previously authenticated user; when utilizing the refresh token, they will be issued a token for the original user.","published":"2023-09-20T14:28:52.089Z","modified":"2026-08-12T03:51:42.599361238Z","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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:42.599361238Z"}}