Client Spoofing within the Keycloak Device Authorisation Grant
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.keycloak:keycloak-server-spi-private | < 21.1.2 | 21.1.2 |
| Java / Kotlin (Maven) | org.keycloak:keycloak-services | < 21.1.2 | 21.1.2 |
References
- 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://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
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N- Weakness (CWE)
CWE-358- Platform
- Java / Kotlin (Maven)
- Package
org.keycloak:keycloak-server-spi-private, org.keycloak:keycloak-services- Disclosed
- 30.06.2023
- Updated
- 11.10.2026 11:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-f5h4-wmp5-xhg6 - CC BY 4.0
Vulnerability history: org.keycloak:keycloak-server-spi-private
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 02.2022 05.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 5
- Low 1
Disclosures per year
- 2022: 1
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 5
-
Client Spoofing within the Keycloak Device Authorisation Grant this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.