CVE-2022-1245: A privilege escalation flaw was found in the token exchange feature of keycloak
CVE-2022-1245 is a critical-severity flaw (CVSS 9.8) affecting keycloak. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-1245?
keycloak: upgrade to 18.0.0. Exact commands for each OS are on this page.
Is CVE-2022-1245 being exploited?
CVE-2022-1245 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-1245 affect?
CVE-2022-1245 affects keycloak. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2022-1245?
Priority 62/100. Critical severity; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Related CVEs
- CVE-2023-6927 MEDIUM 4.6 MITIGATE DOWNGRADE A flaw was found in Keycloak
- CVE-2023-6563 HIGH 7.7 UPGRADE DOWNGRADE An unconstrained memory consumption vulnerability was discovered in Keycloak
- CVE-2023-6291 HIGH 7.1 UPGRADE DOWNGRADE A flaw was found in the redirect_uri validation logic in Keycloak
- CVE-2023-6134 MEDIUM 4.6 UPGRADE UPGRADE A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is app
- CVE-2025-8419 MEDIUM 5.3 MITIGATE A vulnerability was found in Keycloak-services