{"id":"CVE-2022-3916","published":"2023-09-20T14:28:52Z","modified":"2024-08-03T01:20:58Z","title":"Keycloak: session takeover with oidc offline refreshtokens","vendor":"Red Hat","product":"Red Hat Single Sign-On 7","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00952,"percentile":0.62174,"provenance":"source"},"cwes":[{"id":"CWE-384","name":"Session Fixation"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2022:8961","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2022:8962","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2022:8963","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2022:8964","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2022:8965","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1043","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1044","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1045","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1047","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1049","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-3916","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2141404","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":12.43},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 7","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 7","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"RHEL-8 based Middleware Containers","versions":["all versions"]},{"vendor":"Red Hat","product":"RHEL-8 based Middleware Containers","versions":["all versions"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-07-13T20:08:01.880629Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-parent","vulnerableRanges":["<20.0.2"],"patched":["20.0.2"],"from":["GHSA-97g8-xfvw-q4hg"],"provenance":"source"}],"summary":{"text":"A flaw in the offline_access scope of Keycloak, as shipped in Red Hat Single Sign-On 7, lets a previously authenticated user's session be tied to later sessions because root session validation is missing and session IDs are reused across root and user authentication sessions. An attacker on the network with low privileges and a complex attack setup can exploit it without user interaction, though it is most relevant on shared computers where cookies are not cleared, and once they resolve the earlier user's session and use the refresh token, they are issued a token for the original user.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:55:00Z"},"euvd":{"id":"EUVD-2022-7575","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-2256","published":"2022-09-01","fixed":"19.0.2","kev":false},{"cve":"CVE-2022-2668","published":"2022-08-05","fixed":"19.0.2","kev":false},{"cve":"CVE-2022-3782","published":"2023-01-11","fixed":"20.0.2","kev":false},{"cve":"CVE-2022-3916","published":"2023-09-20","fixed":"20.0.2","kev":false},{"cve":"CVE-2022-4137","published":"2023-09-25","fixed":"20.0.5","kev":false,"link":{"from":"CVE-2022-3916","to":"CVE-2022-4137","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.keycloak:keycloak-parent","fromFixed":"20.0.2","toFixed":"20.0.5","daysApart":5}]}}],"package":"Maven:org.keycloak:keycloak-parent"}}