CVE-2022-3916: Keycloak: session takeover with oidc offline refreshtokens
Vulnerability summary
CVE-2022-3916 is a medium (CVSS 6.8) Session Fixation vulnerability in redhat keycloak. EPSS estimates a 0.95% chance of exploitation in the next 30 days, higher than 62.5% of scored vulnerabilities.
Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6Timeline
- 20-09-2023PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- NVDNIST6.8MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
0.95%
Chance of exploitation in the next 30 days
Percentile
63%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.95% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-384Session FixationAuthenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.
- CWE-613DEPRECATED: Insufficient Session ExpirationThis entry has been deprecated because it was insufficiently clear. Consider CWE-1462 and its descendants.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat6 products
- keycloak< 20.0.2
- openshift_container_platform4.9 | 4.10
- openshift_container_platform_for_linuxone4.9 | 4.10
- openshift_container_platform_for_power4.9 | 4.10
- openshift_container_platform_ibm_z_systems4.9 | 4.10
Org.keycloak1 product
- keycloak-parent< 20.0.2
2 vendors · 7 products
References
15 linksShow all 15 references
- github.com/keycloak/keycloakPACKAGE