CVE-2022-1245
keycloak: Privilege escalation vulnerability on Token Exchange
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium).
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.keycloak:keycloak-services | 18.0.0 |
References
- https://access.redhat.com/security/cve/CVE-2022-1245
- https://github.com/keycloak/keycloak
- https://github.com/keycloak/keycloak/commit/76d83f46fad94ebcbedaa49e6daad458e2894e52
- https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8
- https://nvd.nist.gov/vuln/detail/CVE-2022-1245
- https://www.cve.org/CVERecord?id=CVE-2022-1245