Authentication Bypass by Spoofing in Keycloak - CVE-2023-2585
Published: June 28, 2023
Vulnerability identifier: #VU77767
CSH Severity: Medium
CVSS v4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-2585
CWE-ID: CWE-290
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to bypass authentication process.
The vulnerability exists due to an error within the Keycloak Device Authorisation Grant. A remote attacker can spoof parts of the device flow and use a device_code to retrieve an access token for other OAuth clients.
Affected software
Keycloak
Red Hat Single Sign-On
IBM i Modernization Engine for Lifecycle Integration
rh-sso7-keycloak (Red Hat package)
Red Hat Single Sign-On
IBM i Modernization Engine for Lifecycle Integration
rh-sso7-keycloak (Red Hat package)
How to mitigate CVE-2023-2585
Install updates from vendor's website.
Keycloak - update to 21.1.2
Red Hat Single Sign-On - update to 7.6.4
IBM i Modernization Engine for Lifecycle Integration - update to 1.4.4
rh-sso7-keycloak (Red Hat package) - addressed in versions 18.0.8-1.redhat_00001.1.el7sso, 18.0.8-1.redhat_00001.1.el8sso, 18.0.8-1.redhat_00001.1.el9sso
Red Hat Single Sign-On - update to 7.6.4
IBM i Modernization Engine for Lifecycle Integration - update to 1.4.4
rh-sso7-keycloak (Red Hat package) - addressed in versions 18.0.8-1.redhat_00001.1.el7sso, 18.0.8-1.redhat_00001.1.el8sso, 18.0.8-1.redhat_00001.1.el9sso
External References
Related Security Bulletins
- Multiple vulnerabilities in Keycloak
- Multiple vulnerabilities in Red Hat Single Sign-On 7.6
- Red Hat Single Sign-On 7.6.4 security update on RHEL 9
- Red Hat Single Sign-On 7.6.4 security update on RHEL 8
- Red Hat Single Sign-On 7.6.4 security update on RHEL 7
- Multiple vulnerabilities in IBM i Modernization Engine for Lifecycle Integration