CVE-2022-3916
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.
How to fix
- redhat keycloak20.0.2 or later
- org.keycloak:keycloak-parent20.0.2 or later
- access.redhat.com/errata/RHSA-2022:8961
- access.redhat.com/errata/RHSA-2022:8962
- access.redhat.com/errata/RHSA-2022:8963
- access.redhat.com/errata/RHSA-2022:8964
- access.redhat.com/errata/RHSA-2022:8965
- access.redhat.com/errata/RHSA-2023:1043
- access.redhat.com/errata/RHSA-2023:1044
- access.redhat.com/errata/RHSA-2023:1045
- access.redhat.com/errata/RHSA-2023:1047
- access.redhat.com/errata/RHSA-2023:1049
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat keycloak | v < 20.0.2 | 20.0.2 |
| redhat single_sign-on | No range specified, 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 | — |
| org.keycloak:keycloak-parentMaven | v < 20.0.2 | 20.0.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.