Critical severity · published Jul 8, 2022
CVE-2022-1245
A privilege escalation flaw was found in the token exchange feature of keycloak
9.8
CVSS
1.4%
EPSS
No
On KEV
Description
A privilege escalation flaw was found in the token exchange feature of keycloak. Missing authorization allows a client application holding a valid access token to exchange tokens for any target client by passing the client_id of the target. This could allow a client to gain unauthorized access to additional services.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.4% · higher than 73% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Keycloak · Redhat
before 18.0.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-1245
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-1245
Third Party Advisory
https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8
More from Keycloak
9.8
CVE-2019-14910
A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used instead of SSL/TLS from the LDAP server (ldaps), in this case…
9.6
CVE-2021-20195
A flaw was found in keycloak in versions before 13.0.0
9.1
CVE-2022-3782
keycloak: path traversal via double URL encoding
9.1
CVE-2019-14837
A flaw was found in keycloack before version 8.0.0
8.8
CVE-2026-3047
Org.keycloak.broker.saml: keycloak saml broker: authentication bypass due to disabled saml client completing idp-initiated login
