# CVE-2022-3916: Keycloak: session takeover with oidc offline refreshtokens

- Severity: Medium 6.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-02)
- Published: 2022-12-13T19:44:33.000Z
- Modified: 2026-06-17T05:00:34.417Z
- Also known as: GHSA-97g8-xfvw-q4hg
- Weaknesses: CWE-287, CWE-304, CWE-384, CWE-488, CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- keycloak: no versions given
- rh-sso7-keycloak: no versions given (not affected: from 0:18.0.3-1.redhat_00002.1.el7sso before *; from 0:18.0.6-1.redhat_00001.1.el7sso before *; from 0:18.0.3-1.redhat_00002.1.el8sso before *; from 0:18.0.6-1.redhat_00001.1.el8sso before *; from 0:18.0.3-1.redhat_00002.1.el9sso before *; from 0:18.0.6-1.redhat_00001.1.el9sso before *)
- rh-sso-7/sso76-openshift-rhel8: no versions given (not affected: from 7.6-15 before *; from 7.6-20 before *)
- org.keycloak:keycloak-parent (Maven): before 20.0.2
- redhat keycloak: before 20.0.2
- redhat single_sign-on: 7.6
- redhat openshift_container_platform: 4.9; 4.10
- redhat openshift_container_platform_for_linuxone: 4.9; 4.10
- redhat openshift_container_platform_for_power: 4.9; 4.10
- redhat openshift_container_platform_ibm_z_systems: 4.9; 4.10

## Every score

- redhat: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2022:8961> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2022:8962> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2022:8963> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2022:8964> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2022:8965> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1043> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1044> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1045> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1047> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1049> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2022-3916> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2141404> (issue-tracking, vendor-advisory, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-97g8-xfvw-q4hg> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-3916> (advisory)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2022-3916](https://www.cve.org/CVERecord?id=CVE-2022-3916), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-97g8-xfvw-q4hg](https://github.com/advisories/GHSA-97g8-xfvw-q4hg), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-3916](https://nvd.nist.gov/vuln/detail/CVE-2022-3916), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3916 · Whole record: https://cve.day/CVE-2022-3916.json · Rebuilt by cve.day 2026-11-25T22:58:19.620Z
