gsd-2022-3916
Vulnerability from gsd
Modified
2023-12-13 01:19
Details
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.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2022-3916", "id": "GSD-2022-3916", "references": [ "https://access.redhat.com/errata/RHSA-2022:8961", "https://access.redhat.com/errata/RHSA-2022:8962", "https://access.redhat.com/errata/RHSA-2022:8963", "https://access.redhat.com/errata/RHSA-2022:8964", "https://access.redhat.com/errata/RHSA-2022:8965", "https://access.redhat.com/errata/RHSA-2023:1043", "https://access.redhat.com/errata/RHSA-2023:1044", "https://access.redhat.com/errata/RHSA-2023:1045", "https://access.redhat.com/errata/RHSA-2023:1047", "https://access.redhat.com/errata/RHSA-2023:1049" ] }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "aliases": [ "CVE-2022-3916" ], "details": "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.", "id": "GSD-2022-3916", "modified": "2023-12-13T01:19:39.894353Z", "schema_version": "1.4.0" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "secalert@redhat.com", "ID": "CVE-2022-3916", "STATE": "PUBLIC" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "keycloak", "version": { "version_data": [ { "version_value": "not down converted", "x_cve_json_5_version_data": { "versions": [ { "status": "unaffected", "version": "20.0.2" } ] } } ] } } ] }, "vendor_name": "n/a" }, { "product": { "product_data": [ { "product_name": "Red Hat Single Sign-On 7", "version": { "version_data": [ { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "unaffected" } }, { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "unaffected" } } ] } }, { "product_name": "Red Hat Single Sign-On 7.6 for RHEL 7", "version": { "version_data": [ { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "affected", "versions": [ { "lessThan": "*", "status": "unaffected", "version": "0:18.0.3-1.redhat_00002.1.el7sso", "versionType": "rpm" } ] } }, { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "affected", "versions": [ { "lessThan": "*", "status": "unaffected", "version": "0:18.0.6-1.redhat_00001.1.el7sso", "versionType": "rpm" } ] } } ] } }, { "product_name": "Red Hat Single Sign-On 7.6 for RHEL 8", "version": { "version_data": [ { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "affected", "versions": [ { "lessThan": "*", "status": "unaffected", "version": "0:18.0.3-1.redhat_00002.1.el8sso", "versionType": "rpm" } ] } }, { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "affected", "versions": [ { "lessThan": "*", "status": "unaffected", "version": "0:18.0.6-1.redhat_00001.1.el8sso", "versionType": "rpm" } ] } } ] } }, { "product_name": "Red Hat Single Sign-On 7.6 for RHEL 9", "version": { "version_data": [ { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "affected", "versions": [ { "lessThan": "*", "status": "unaffected", "version": "0:18.0.3-1.redhat_00002.1.el9sso", "versionType": "rpm" } ] } }, { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "affected", "versions": [ { "lessThan": "*", "status": "unaffected", "version": "0:18.0.6-1.redhat_00001.1.el9sso", "versionType": "rpm" } ] } } ] } }, { "product_name": "RHEL-8 based Middleware Containers", "version": { "version_data": [ { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "affected", "versions": [ { "lessThan": "*", "status": "unaffected", "version": "7.6-15", "versionType": "rpm" } ] } }, { "version_value": "not down converted", "x_cve_json_5_version_data": { "defaultStatus": "affected", "versions": [ { "lessThan": "*", "status": "unaffected", "version": "7.6-20", "versionType": "rpm" } ] } } ] } } ] }, "vendor_name": "Red Hat" } ] } }, "credits": [ { "lang": "en", "value": "Red Hat would like to thank Peter Flintholm (Trifork) for reporting this issue." } ], "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "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." } ] }, "impact": { "cvss": [ { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.8, "baseSeverity": "MEDIUM", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N", "version": "3.1" } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "cweId": "CWE-384", "lang": "eng", "value": "Session Fixation" } ] } ] }, "references": { "reference_data": [ { "name": "https://access.redhat.com/errata/RHSA-2022:8961", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2022:8961" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8962", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2022:8962" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8963", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2022:8963" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8964", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2022:8964" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8965", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2022:8965" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1043", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2023:1043" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1044", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2023:1044" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1045", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2023:1045" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1047", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2023:1047" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1049", "refsource": "MISC", "url": "https://access.redhat.com/errata/RHSA-2023:1049" }, { "name": "https://access.redhat.com/security/cve/CVE-2022-3916", "refsource": "MISC", "url": "https://access.redhat.com/security/cve/CVE-2022-3916" }, { "name": "https://bugzilla.redhat.com/show_bug.cgi?id=2141404", "refsource": "MISC", "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2141404" } ] } }, "gitlab.com": { "advisories": [ { "affected_range": "(,19.0.2]", "affected_versions": "All versions up to 19.0.2", "cwe_ids": [ "CWE-1035", "CWE-937" ], "date": "2022-12-13", "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.\n\nThis 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.", "fixed_versions": [ "20.0.2" ], "identifier": "GMS-2022-8406", "identifiers": [ "GHSA-97g8-xfvw-q4hg", "GMS-2022-8406", "CVE-2022-3916" ], "not_impacted": "All versions after 19.0.2", "package_slug": "maven/org.keycloak/keycloak-parent", "pubdate": "2022-12-13", "solution": "Upgrade to version 20.0.2 or above.", "title": "Keycloak vulnerable to session takeover with OIDC offline refreshtokens", "urls": [ "https://github.com/keycloak/keycloak/security/advisories/GHSA-97g8-xfvw-q4hg", "https://github.com/advisories/GHSA-97g8-xfvw-q4hg" ], "uuid": "b3d87723-b9e0-4385-b744-04cb878e9d57" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "20.0.2", "vulnerable": true } ], "operator": "OR" }, { "children": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true } ], "operator": "OR" }, { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": false }, { "cpe23Uri": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": false }, { "cpe23Uri": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": false } ], "operator": "OR" } ], "cpe_match": [], "operator": "AND" }, { "children": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform:4.9:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform:4.10:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.10:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.9:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.10:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true } ], "operator": "OR" }, { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": false } ], "operator": "OR" } ], "cpe_match": [], "operator": "AND" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "secalert@redhat.com", "ID": "CVE-2022-3916" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "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." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "en", "value": "CWE-613" } ] } ] }, "references": { "reference_data": [ { "name": "https://access.redhat.com/security/cve/CVE-2022-3916", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/security/cve/CVE-2022-3916" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8961", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2022:8961" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1043", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2023:1043" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1044", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2023:1044" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8963", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2022:8963" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8962", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2022:8962" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8965", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2022:8965" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1047", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2023:1047" }, { "name": "https://access.redhat.com/errata/RHSA-2022:8964", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2022:8964" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1045", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2023:1045" }, { "name": "https://bugzilla.redhat.com/show_bug.cgi?id=2141404", "refsource": "MISC", "tags": [ "Issue Tracking", "Vendor Advisory" ], "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2141404" }, { "name": "https://access.redhat.com/errata/RHSA-2023:1049", "refsource": "MISC", "tags": [ "Vendor Advisory" ], "url": "https://access.redhat.com/errata/RHSA-2023:1049" } ] } }, "impact": { "baseMetricV3": { "cvssV3": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.8, "baseSeverity": "MEDIUM", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N", "version": "3.1" }, "exploitabilityScore": 1.6, "impactScore": 5.2 } }, "lastModifiedDate": "2023-09-22T18:34Z", "publishedDate": "2023-09-20T15:15Z" } } }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.