CVE-2022-3916: A flaw was found in the offline_access scope in Keycloak.
Medium CVSS 6.8
- CVE id
- CVE-2022-3916
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Keycloak Runtimes and servers |
< 20.0.2 | 20.0.2 |
How to fix it
Upgrade Keycloak to 20.0.2 or later.
- Upgrade Keycloak (the quay.io/keycloak/keycloak image tag) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
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.
References
- CVE-2022-3916 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2022-3916
- Web: https://access.redhat.com/errata/RHSA-2022:8961
- Web: https://access.redhat.com/errata/RHSA-2022:8962
- Web: https://access.redhat.com/errata/RHSA-2022:8963
- Web: https://access.redhat.com/errata/RHSA-2022:8964
- Web: https://access.redhat.com/errata/RHSA-2022:8965
- Web: https://access.redhat.com/errata/RHSA-2023:1043
- Web: https://access.redhat.com/errata/RHSA-2023:1044
- Web: https://access.redhat.com/errata/RHSA-2023:1045
- Web: https://access.redhat.com/errata/RHSA-2023:1047
- Web: https://access.redhat.com/errata/RHSA-2023:1049
- Web: https://access.redhat.com/security/cve/CVE-2022-3916
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=2141404
- Web: https://access.redhat.com/errata/RHSA-2022:8961
- Web: https://access.redhat.com/errata/RHSA-2022:8962
- Web: https://access.redhat.com/errata/RHSA-2022:8963
- Web: https://access.redhat.com/errata/RHSA-2022:8964
- Web: https://access.redhat.com/errata/RHSA-2022:8965
- Web: https://access.redhat.com/errata/RHSA-2023:1043
- Web: https://access.redhat.com/errata/RHSA-2023:1044
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.