Read the docs
TI-2022-03591 Aliases CVE-2022-3916GHSA-97g8-xfvw-q4hg

Keycloak: session takeover with oidc offline refreshtokens

Priority LOW 34CWE-384Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
Spoofing, Security bypass
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-384 and CWE-613.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00952 61st percentileScored 2026-11-07
Fix Fixed org.keycloak:keycloak-parent (Maven): 20.0.2Red Hat: 10 advisories

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Red HatRed Hat Single Sign-On 7——Not affectedCNA
Red HatRed Hat Single Sign-On 7.6.1——Not affectedCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 7—18.0.3-1.redhat_00002.1.el7ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 7—18.0.6-1.redhat_00001.1.el7ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 8—18.0.3-1.redhat_00002.1.el8ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 8—18.0.6-1.redhat_00001.1.el8ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 9—18.0.3-1.redhat_00002.1.el9ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 9—18.0.6-1.redhat_00001.1.el9ssoPatch availableCNA
Red HatRHEL-8 based Middleware Containers—7.6-15Patch availableCNA
Red HatRHEL-8 based Middleware Containers—7.6-20Patch availableCNA
—org.keycloak:keycloak-parent (Maven)before 20.0.220.0.2Patch availableGHSA-97g8-xfvw-q4hg
  • Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Single Sign-On 7.6.1 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.3-1.redhat_00002.1.el7sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.6-1.redhat_00001.1.el7sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.3-1.redhat_00002.1.el8sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.6-1.redhat_00001.1.el8sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.3-1.redhat_00002.1.el9sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.6-1.redhat_00001.1.el9sso Patch available CNA
  • RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6-15 Patch available CNA
  • RHEL-8 based Middleware Containers VendorRed Hat Affected — Fixed in 7.6-20 Patch available CNA
  • org.keycloak:keycloak-parent (Maven) Vendor— Affected before 20.0.2 Fixed in 20.0.2 Patch available GHSA-97g8-xfvw-q4hg

CPE configurations NVD · 14

CPEVersionsRoleVendor
cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*before 20.0.2VulnerableRed Hat
cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:*not specified by NVDVulnerableRed Hat
cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:*7.6VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*7.0Running onRed Hat
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*8.0Running onRed Hat
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*9.0Running onRed Hat
cpe:2.3:a:redhat:openshift_container_platform:4.9:*:*:*:*:*:*:*4.9VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform:4.10:*:*:*:*:*:*:*4.10VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:*4.9VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.10:*:*:*:*:*:*:*4.10VulnerableRed Hat
  • cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* Versions before 20.0.2 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* Versions not specified by NVD Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Running on ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Running on ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Running on ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform:4.9:*:*:*:*:*:*:* Versions 4.9 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform:4.10:*:*:*:*:*:*:* Versions 4.10 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:* Versions 4.9 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.10:*:*:*:*:*:*:* Versions 4.10 Vulnerable ·Red Hat
Show 4 more CPE
CPEVersionsRoleVendor
cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:*4.9VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:*4.10VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.9:*:*:*:*:*:*:*4.9VulnerableRed Hat
cpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.10:*:*:*:*:*:*:*4.10VulnerableRed Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:* Versions 4.9 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:* Versions 4.10 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.9:*:*:*:*:*:*:* Versions 4.9 Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.10:*:*:*:*:*:*:* Versions 4.10 Vulnerable ·Red Hat

Remediation

  • Fix · GHSA-97g8-xfvw-q4hg org.keycloak:keycloak-parent (Maven) Fixed in 20.0.2 Advisory →

Red Hat 10 advisories

  • RHSA-2023:1043 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 security update on RHEL 7
    • Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el7sso
  • RHSA-2023:1049 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 security update
    • Red Hat Single Sign-On 7
  • RHSA-2023:1047 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 for OpenShift image security and enhancement update
    • Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
Show 7 more Red Hat advisories
  • RHSA-2023:1045 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 security update on RHEL 9
    • Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el9sso
  • RHSA-2023:1044 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 security update on RHEL 8
    • Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el8sso
  • RHSA-2022:8964 Released 2022-12-13 · Red Hat rating Important
    updated rh-sso-7/sso76-openshift-rhel8 container and operator related images
    • Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
  • RHSA-2022:8965 Released 2022-12-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.1 security update
    • Red Hat Single Sign-On 7.6.1
  • RHSA-2022:8963 Released 2022-12-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.1 security update on RHEL 9
    • Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.3-1.redhat_00002.1.el9sso, rh-sso7-keycloak-server-18.0.3-1.redhat_00002.1.el9sso
  • RHSA-2022:8962 Released 2022-12-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.1 security update on RHEL 8
    • Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.3-1.redhat_00002.1.el8sso, rh-sso7-keycloak-server-18.0.3-1.redhat_00002.1.el8sso
  • RHSA-2022:8961 Released 2022-12-13 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.1 security update on RHEL 7
    • Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.3-1.redhat_00002.1.el7sso, rh-sso7-keycloak-server-18.0.3-1.redhat_00002.1.el7sso

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Advisory ·

    Red Hat RHEL-8 based Middleware Containers, Red Hat Single Sign-On 7 and 3 more products — RHSA-2023:1043

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2022-03783 Keycloak: reflected xss attackPriority LOW 38
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29
  • Advisory ·

    Red Hat RHEL-8 based Middleware Containers, Red Hat Single Sign-On 7 and 3 more products — RHSA-2023:1044

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2022-03783 Keycloak: reflected xss attackPriority LOW 38
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29
Show 3 more groups
  • Advisory ·

    Red Hat RHEL-8 based Middleware Containers, Red Hat Single Sign-On 7 and 3 more products — RHSA-2023:1045

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2022-03783 Keycloak: reflected xss attackPriority LOW 38
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29
  • Advisory ·

    Red Hat RHEL-8 based Middleware Containers, Red Hat Single Sign-On 7 and 3 more products — RHSA-2023:1047

    3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW

    Other records, highest priority first

    • TI-2022-03706 Rhsso-container-image: unsecured management interface exposed to adjecent networkPriority MEDIUM 44
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29
  • Advisory ·

    Red Hat RHEL-8 based Middleware Containers, Red Hat Single Sign-On 7 and 3 more products — RHSA-2023:1049

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2022-03783 Keycloak: reflected xss attackPriority LOW 38
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Middleware Containers for OpenShiftFixed RHSA-2022:8964, RHSA-2023:1047
Red Hat Single Sign-On 7Fixed RHSA-2023:1049
Red Hat Single Sign-On 7.6 for RHEL 7 ServerFixed RHSA-2022:8961, RHSA-2023:1043
Red Hat Single Sign-On 7.6 for RHEL 8Fixed RHSA-2022:8962, RHSA-2023:1044
Red Hat Single Sign-On 7.6 for RHEL 9Fixed RHSA-2022:8963, RHSA-2023:1045
Red Hat Single Sign-On 7.6.1Fixed RHSA-2022:8965
Not affected: 1 product
  • Middleware Containers for OpenShift

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-3916
  2. 2026-10-03 Alias added: GHSA-97g8-xfvw-q4hg

References

  • TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
  • TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
  • TI-2020-08665 Server-side request forgery in keycloak CVSS 3.1MEDIUM 5.3
  • TI-2022-03468 Path traversal in Red Hat Keycloak CVSS 3.1CRITICAL 9.1
  • TI-2021-03612 A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. CVSS 3.1MEDIUM 6.1
  • TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
See all 97 →

Sources