# CVE-2023-2585: Keycloak: client access via device auth request spoof

- Severity: Low 3.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2023-06-30T20:29:25.000Z
- Modified: 2026-06-17T05:52:54.277Z
- Also known as: GHSA-f5h4-wmp5-xhg6
- Weaknesses: CWE-358
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- keycloak: no versions given
- rh-sso7-keycloak: no versions given (not affected: from 0:18.0.8-1.redhat_00001.1.el7sso before *; from 0:18.0.8-1.redhat_00001.1.el8sso before *; from 0:18.0.8-1.redhat_00001.1.el9sso before *)
- rh-sso-7/sso76-openshift-rhel8: no versions given (not affected: from 7.6-24 before *)
- org.keycloak:keycloak-services (Maven): before 21.1.2
- org.keycloak:keycloak-server-spi-private (Maven): before 21.1.2
- redhat single_sign-on: 7.6
- redhat openshift_container_platform: 4.11; 4.12
- redhat openshift_container_platform_for_ibm_z: 4.9; 4.10
- redhat openshift_container_platform_for_linuxone: 4.9; 4.10
- redhat openshift_container_platform_for_power: 4.9; 4.10

## Every score

- redhat: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2023:3883> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:3884> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:3885> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:3888> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:3892> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2023-2585> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2196335> (issue-tracking, vendor-advisory, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-f5h4-wmp5-xhg6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-2585> (advisory)
- <https://github.com/keycloak/keycloak/commit/04e6244c387a1bde86184635a0049537611e3915> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2023-2585](https://www.cve.org/CVERecord?id=CVE-2023-2585), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-f5h4-wmp5-xhg6](https://github.com/advisories/GHSA-f5h4-wmp5-xhg6), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-2585](https://nvd.nist.gov/vuln/detail/CVE-2023-2585), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-2585 · Whole record: https://cve.day/CVE-2023-2585.json · Rebuilt by cve.day 2026-11-25T22:58:31.577Z
