What’s Vulnerable › Vulnerabilities
CVE-2022-1245
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-07-08 · updated 2026-06-17
- Weakness: CWE-862
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.
Affected products
- Keycloak: before 18.0.0 — fixed in 18.0.0
How to fix
Upgrade to a fixed version: Keycloak 18.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8
- https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8
Get alerted when CVE-2022-1245 or the next vulnerability affects your stack