# CVE-2023-2585: Client Spoofing within the Keycloak Device Authorisation Grant

Source: https://junglewise.ai/threats/cve-2023-2585-client-spoofing-within-the-keycloak-device-authorisation-grant  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-06-30  
License: CC BY 4.0 with a link back

CVE-2023-2585 · Severity: low · CVSS 3.1 · Published 2023-06-30

Client Spoofing within the Keycloak Device Authorisation Grant

Technologies: [org.keycloak:keycloak-server-spi-private (Maven)](https://junglewise.ai/threats/technologies/org-keycloak-keycloak-server-spi-private), [org.keycloak:keycloak-services (Maven)](https://junglewise.ai/threats/technologies/org-keycloak-keycloak-services). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2023-2585 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-2585 being exploited in the wild.

**How severe is CVE-2023-2585?** Low severity, with a CVSS score of 3.1, published 30 June 2023.

**Which products and versions are affected?** org.keycloak:keycloak-server-spi-private (Maven) ECOSYSTEM:introduced=0,fixed=21.1.2; org.keycloak:keycloak-services (Maven) ECOSYSTEM:introduced=0,fixed=21.1.2.

**Is there a fix for CVE-2023-2585?** Yes. org.keycloak:keycloak-server-spi-private (Maven): upgrade to 21.1.2 or later; org.keycloak:keycloak-services (Maven): upgrade to 21.1.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-2585?** Check whether you run org.keycloak:keycloak-server-spi-private (Maven) or org.keycloak:keycloak-services (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.keycloak:keycloak-server-spi-private (Maven): upgrade to 21.1.2 or later

  ```sh
  # set org.keycloak:keycloak-server-spi-private to 21.1.2 in your pom.xml or build.gradle
  ```

- org.keycloak:keycloak-services (Maven): upgrade to 21.1.2 or later

  ```sh
  # set org.keycloak:keycloak-services to 21.1.2 in your pom.xml or build.gradle
  ```


## Affected products

- org.keycloak:keycloak-server-spi-private (Maven) ECOSYSTEM:introduced=0,fixed=21.1.2
- org.keycloak:keycloak-services (Maven) ECOSYSTEM:introduced=0,fixed=21.1.2

## Identifiers

- CVE-2023-2585
- GHSA-f5h4-wmp5-xhg6

## Related threats

- [Keycloak unauthenticated account takeover via reset-credentials bypass](https://junglewise.ai/threats/cve-2026-18963-siemens-industrial-edge-management-authentication-bypass-in)
- [Duplicate Advisory: Authentication bypass via jwt algorithm confusion](https://junglewise.ai/threats/duplicate-advisory-authentication-bypass-via-jwt-algorithm-confusion-40489dee)
- [Keycloak JWT algorithm confusion in JWT Authorization Grant flow](https://junglewise.ai/threats/cve-2026-11800-keycloak-jwt-algorithm-confusion-in-jwt-authorization-grant-flow)
- [Duplicate Advisory: Keycloak vulnerable to authorization bypass via incorrect uri comparison](https://junglewise.ai/threats/duplicate-advisory-keycloak-vulnerable-to-authorization-bypass-via-009d6a49)
- [Duplicate Advisory: Keycloak vulnerable to cross-site scripting (xss) via case-insensitive uri validation bypass](https://junglewise.ai/threats/duplicate-advisory-keycloak-vulnerable-to-cross-site-scripting-xss-via-1687acae)
