cve.bz

CVE-2022-3916 redhat: Insufficient Session Expiration

6.8 mediumEPSS 1.0%Fix available

Medium (6.8) in redhat. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-parent 20.0.2.

On this page
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.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-07-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-613 Insufficient Session Expiration deprecated by MITRE see CWE-1463, CWE-1464
CWE-384 Session Fixation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • org.keycloak:keycloak-parent (Maven): fixed in 20.0.2
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 7: fixed in 0:18.0.3-1.redhat_00002.1.el7sso
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 7: fixed in 0:18.0.6-1.redhat_00001.1.el7sso
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 8: fixed in 0:18.0.3-1.redhat_00002.1.el8sso
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 8: fixed in 0:18.0.6-1.redhat_00001.1.el8sso
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 9: fixed in 0:18.0.3-1.redhat_00002.1.el9sso
  • Red Hat Red Hat Single Sign-On 7.6 for RHEL 9: fixed in 0:18.0.6-1.redhat_00001.1.el9sso
  • Red Hat RHEL-8 based Middleware Containers: fixed in 7.6-15
  • Red Hat RHEL-8 based Middleware Containers: fixed in 7.6-20
  • Red Hat: fixed package versions per release
  • Vendor advisory: https://access.redhat.com/errata/RHSA-2022:8961
  • Vendor advisory: https://access.redhat.com/errata/RHSA-2022:8962
  • Vendor advisory: https://access.redhat.com/errata/RHSA-2022:8963

Ask an AI about this CVE

Show the promptExplain CVE-2022-3916 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-3916?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-3916?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-3916 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Single Sign-On 7.6 for RHEL 70:18.0.3-1.redhat_00002.1.el7sso
Red Hat Single Sign-On 7.6 for RHEL 70:18.0.6-1.redhat_00001.1.el7sso
Red Hat Single Sign-On 7.6 for RHEL 80:18.0.3-1.redhat_00002.1.el8sso
Red Hat Single Sign-On 7.6 for RHEL 80:18.0.6-1.redhat_00001.1.el8sso
Red Hat Single Sign-On 7.6 for RHEL 90:18.0.3-1.redhat_00002.1.el9sso
Red Hat Single Sign-On 7.6 for RHEL 90:18.0.6-1.redhat_00001.1.el9sso
Red Hat RHEL-8 based Middleware Containers7.6-15
Red Hat RHEL-8 based Middleware Containers7.6-20

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-97g8-xfvw-q4hgMavenorg.keycloak:keycloak-parent<20.0.220.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatred_hat_single_sign_on:7.6::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.3-1.redhat_00002.1.el7ssoRHSA-2022:8961
Red Hatred_hat_single_sign_on:7.6::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el7ssoRHSA-2023:1043
Red Hatred_hat_single_sign_on:7.6::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.3-1.redhat_00002.1.el8ssoRHSA-2022:8962
Red Hatred_hat_single_sign_on:7.6::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el8ssoRHSA-2023:1044
Red Hatred_hat_single_sign_on:7.6::el9rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.3-1.redhat_00002.1.el9ssoRHSA-2022:8963
Red Hatred_hat_single_sign_on:7.6::el9rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el9ssoRHSA-2023:1045

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Single Sign-On 7rh-sso7-keycloakFixed 2023-03-01RHSA-2023:1049
Red Hat Single Sign-On 7.6.1rh-sso7-keycloakFixed 2022-12-13RHSA-2022:8965
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.3-1.redhat_00002.1.el7ssoFixed 2022-12-13RHSA-2022:8961
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.6-1.redhat_00001.1.el7ssoFixed 2023-03-01RHSA-2023:1043
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.3-1.redhat_00002.1.el8ssoFixed 2022-12-13RHSA-2022:8962
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.6-1.redhat_00001.1.el8ssoFixed 2023-03-01RHSA-2023:1044
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloak-0:18.0.3-1.redhat_00002.1.el9ssoFixed 2022-12-13RHSA-2022:8963
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloak-0:18.0.6-1.redhat_00001.1.el9ssoFixed 2023-03-01RHSA-2023:1045
RHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8:7.6-15Fixed 2022-12-13RHSA-2022:8964
RHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8:7.6-20Fixed 2023-03-01RHSA-2023:1047

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-3916.

Attack patterns (CAPEC)

  • CAPEC-21 Exploitation of Trusted Identifiers Likelihood: High · Severity: High
  • CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies Likelihood: High · Severity: High
  • CAPEC-39 Manipulating Opaque Client-based Data Tokens Likelihood: High · Severity: Medium
  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-60 Reusing Session IDs (aka Session Replay) Likelihood: High · Severity: High
  • CAPEC-61 Session Fixation Likelihood: Medium · Severity: High
  • CAPEC-196 Session Credential Falsification through Forging Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON