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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat Single Sign-On 7 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6.1 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | — | — |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | — | — |
| Red Hat | RHEL-8 based Middleware Containers | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Single Sign On 7 | rh-sso7-keycloak +1 | 18.0.3-1.redhat_00002.1.el7sso | RHSA-2023:1045, RHSA-2023:1044, RHSA-2023:1043 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-parent | < 20.0.2 | 20.0.2 | GHSA-97g8-xfvw-q4hg |
Advisories 7
- RHSA-2023:1045 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2023:1044 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2023:1043 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2022:8963 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- RHSA-2022:8961 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- RHSA-2022:8962 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- WID-SEC-2022-2009 Keycloak: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Mar 1, 2023
References
- RHSA-2022:8961 vendor-advisory
- RHSA-2022:8962 vendor-advisory
- RHSA-2022:8963 vendor-advisory
- RHSA-2022:8964 vendor-advisory
- RHSA-2022:8965 vendor-advisory
- RHSA-2023:1043 vendor-advisory
- RHSA-2023:1044 vendor-advisory
- RHSA-2023:1045 vendor-advisory
- RHSA-2023:1047 vendor-advisory
- RHSA-2023:1049 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2022-3916 vdb-entry
- RHBZ#2141404 issue-tracking