CVE-2022-1245
CWE-862Published: July 8, 2022· Updated: Jun 17, 2026
Official 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.
Risk Analysis
Keycloak suffers from a privilege escalation flaw in its token exchange feature due to missing authorization checks. This allows a client with a valid token to exchange it for access to unauthorized target services.
There is no public exploit known for this vulnerability, and it is not listed in the CISA KEV catalog.
Administrators should apply the latest security updates provided by Red Hat for Keycloak.
Technical Analysis
CVE-2022-1245 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (2)
Quick Facts
Related CVEs (CWE-862)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2022-1245 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts