{"id":"CVE-2023-2585","published":"2023-12-21T09:24:16Z","modified":"2024-08-02T06:26:09Z","title":"Keycloak: client access via device auth request spoof","vendor":"Red Hat","product":"Red Hat Single Sign-On 7","tier":"tail","description":{"text":"Keycloak's device authorization grant does not correctly validate the device code and client ID. An attacker client could abuse the missing validation to spoof a client consent request and trick an authorization admin into granting consent to a malicious OAuth client or possible unauthorized access to an existing OAuth client.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00694,"percentile":0.53844,"provenance":"source"},"cwes":[{"id":"CWE-358","name":"Improperly Implemented Security Check for Standard"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:3883","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3884","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3885","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3888","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3892","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-2585","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2196335","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":10.77},{"name":"CVSS severity","points":2.45}]},"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 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":"RHEL-8 based Middleware Containers","versions":["all versions"]}],"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-services","vulnerableRanges":["<21.1.2"],"patched":["21.1.2"],"from":["GHSA-f5h4-wmp5-xhg6"],"provenance":"source"},{"ecosystem":"Maven","package":"org.keycloak:keycloak-server-spi-private","vulnerableRanges":["<21.1.2"],"patched":["21.1.2"],"from":["GHSA-f5h4-wmp5-xhg6"],"provenance":"source"}],"summary":{"text":"Keycloak's device authorization grant in Red Hat Single Sign-On 7 fails to properly validate the device code and client ID. The flaw can be abused to spoof a client consent request. An attacker with network access and an authenticated client (privileges required) can trick an authorization admin into interaction, granting consent to a malicious OAuth client or gaining possible unauthorized access to an existing OAuth client.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:49Z"},"euvd":{"id":"EUVD-2023-1780","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-build-of-keycloak-26-4-cve-2023-2585","children":[{"from":"CVE-2023-2585","to":"CVE-2026-9704","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/protocol/oidc/grants/ciba/CibaGrantType.java","services/src/main/java/org/keycloak/protocol/oidc/grants/device/DeviceGrantType.java"],"commits":["https://github.com/keycloak/keycloak/commit/04e6244c387a1bde86184635a0049537611e3915","https://github.com/keycloak/keycloak/commit/f1e5b7776c42938d0782fd5846346b8f75c815e6"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-0264","published":"2023-08-04","fixed":"21.0.1","kev":false,"link":{"from":"CVE-2023-0264","to":"CVE-2023-2585","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.keycloak:keycloak-services","fromFixed":"21.0.1","toFixed":"21.1.2","daysApart":139}]}},{"cve":"CVE-2022-4361","published":"2023-07-07","fixed":"21.1.2","kev":false},{"cve":"CVE-2023-2422","published":"2023-10-04","fixed":"21.1.2","kev":false},{"cve":"CVE-2023-2585","published":"2023-12-21","fixed":"21.1.2","kev":false},{"cve":"CVE-2022-2232","published":"2024-11-14","fixed":"23.0.1","kev":false},{"cve":"CVE-2023-6134","published":"2023-12-14","fixed":"23.0.3","kev":false},{"cve":"CVE-2023-6291","published":"2024-01-26","fixed":"23.0.3","kev":false}],"package":"Maven:org.keycloak:keycloak-services"}}