GitHub Advisoryadvisory · Maven
GHSA-97g8-xfvw-q4hg Keycloak vulnerable to session takeover with OIDC offline refreshtokens
MEDIUM
Official page ↗
- Aliases
- CVE-2022-3916
- Ecosystem
- Maven
- Packages
- org.keycloak:keycloak-parent
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- Weaknesses
- CWE-287, CWE-304, CWE-488, CWE-613
- Reviewed
- 2022-12-13
Affected packages
• Maven org.keycloak:keycloak-parent: < 20.0.2 → fixed in 20.0.2
Description
An issue was discovered in Keycloak when using a client with the `offline_access` scope. Reuse of session ids across root and user authentication sessions and a lack of root session validation enabled attackers to resolve a user session attached to a different previously authenticated user.
This issue most affects users of shared computers. Suppose a user logs out of their account (without clearing their cookies) in a mobile app or similar client that includes the `offline_access` scope, and another user authenticates to the application. In that case, it will share the same root session id, and when utilizing the refresh token, they will be issued a token for the original user.
Related
Weakness · not in database (1)
Alias · CVE (1)
- CVE-2022-3916 A flaw was found in the offline_access scope in Keycloak. vulnerability
References
- https://github.com/keycloak/keycloak/security/advisories/GHSA-97g8-xfvw-q4hg web
- https://nvd.nist.gov/vuln/detail/CVE-2022-3916 advisory
- 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://github.com/keycloak/keycloak package