{"id":"CVE-2023-2585","aliases":["CVE-2023-2585","GHSA-f5h4-wmp5-xhg6"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak: client access via device auth request spoof","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"Under certain pre-conditions the vulnerability allows an attacker to spoof parts of the device flow and use a device_code to retrieve an access token for other OAuth clients.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La concesión de autorización del dispositivo de Keycloak no valida correctamente el código del dispositivo y la identificación del cliente. Un cliente atacante podría abusar de la validación faltante para falsificar una solicitud de consentimiento del cliente y engañar a un administrador de autorización para que otorgue el consentimiento a un cliente OAuth malicioso o un posible acceso no autorizado a un cliente OAuth existente.","source":"nvd"}],"published":"2023-06-30T20:29:25.000Z","modified":"2026-06-17T05:52:54.277Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","score":3.5,"rating":"LOW"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","score":3.5,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","score":3.5,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-358"],"affected":[{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6.4","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:18.0.8-1.redhat_00001.1.el7sso","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 7","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el7","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:18.0.8-1.redhat_00001.1.el8sso","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 8","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:18.0.8-1.redhat_00001.1.el9sso","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 9","package":"rh-sso7-keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"7.6-24","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"RHEL-8 based Middleware Containers","package":"rh-sso-7/sso76-openshift-rhel8","cpe":"cpe:/a:redhat:rhosemc:1.0::el8","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"21.1.2"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"21.1.2"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-server-spi-private","purl":"pkg:maven/org.keycloak/keycloak-server-spi-private","source":"ghsa"},{"ranges":[{"status":"affected","version":"7.6"}],"vendor":"redhat","product":"single_sign-on","cpe":"cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.11"},{"status":"affected","version":"4.12"}],"vendor":"redhat","product":"openshift_container_platform","cpe":"cpe:2.3:a:redhat:openshift_container_platform:4.11:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.9"},{"status":"affected","version":"4.10"}],"vendor":"redhat","product":"openshift_container_platform_for_ibm_z","cpe":"cpe:2.3:a:redhat:openshift_container_platform_for_ibm_z:4.9:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.9"},{"status":"affected","version":"4.10"}],"vendor":"redhat","product":"openshift_container_platform_for_linuxone","cpe":"cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.9"},{"status":"affected","version":"4.10"}],"vendor":"redhat","product":"openshift_container_platform_for_power","cpe":"cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:3883","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3884","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3885","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3888","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:3892","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-2585","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2196335","tags":["issue-tracking","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-f5h4-wmp5-xhg6","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2585","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/04e6244c387a1bde86184635a0049537611e3915","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-2585","url":"https://www.cve.org/CVERecord?id=CVE-2023-2585","licence":"CVE Terms of Use","modified":"2024-08-02T06:26:09.896Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f5h4-wmp5-xhg6","url":"https://github.com/advisories/GHSA-f5h4-wmp5-xhg6","licence":"CC-BY-4.0","modified":"2024-02-16T08:14:33.799Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-2585","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2585","licence":"Public domain","modified":"2026-06-17T05:52:54.277Z"}],"updatedAt":"2026-11-25T22:58:31.577Z","epss":{"score":0.00694,"percentile":0.54184,"date":"2026-12-01T12:00:22.000Z"}}