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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-12-21 · Modified: 2024-08-02
- Aliases: GHSA-f5h4-wmp5-xhg6
- Record: https://cvemate.com/vulnerability/CVE-2023-2585 · JSON: https://cvemate.com/vulnerability/CVE-2023-2585/json

## 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.
```

## Signals

- CVSS: 8.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- EPSS: 0.694%, percentile 54.321%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- org.keycloak keycloak-server-spi-private (Maven): \< 21.1.2
- org.keycloak keycloak-services (Maven): \< 21.1.2
- 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
- redhat single\_sign-on: 7.6 \| na

## References

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

---

Data as of 2026-12-05T03:44:22.866Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
