All reports
Critical

Keycloak vulnerable to privilege escalation on Token Exchange feature

Affected versions

Affected versions
< 18.0.0
Fixed version
18.0.0

Exploitation

CVE-2022-1245

Probability of exploitation in the next 30 days: 1.45%

FIRST EPSS · 2026-11-22

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.

Links

Credits

  • knutz3n
  • kurt-r2c