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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-09-20 · Modified: 2024-08-03
- Aliases: GHSA-97g8-xfvw-q4hg
- Record: https://cvemate.com/vulnerability/CVE-2022-3916 · JSON: https://cvemate.com/vulnerability/CVE-2022-3916/json

## Description

```text
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.
```

## Signals

- CVSS: 6.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.952%, percentile 62.511%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- org.keycloak keycloak-parent (Maven): \< 20.0.2
- redhat keycloak: \< 20.0.2
- 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
- redhat single\_sign-on: na \| 7.6

## References

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

---

Data as of 2026-12-05T02:49:49.568Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
