CVE-2022-1245: Privilege escalation vulnerability on Token Exchange feature

CVE-2022-1245 affects 52 listed versions of Red Hat Keycloak in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
1%EPSS (next 30 days)
8 July 2022published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Red Hat Keycloak

52 of 176 listed versions are affected. Fixed in 18.0.0. The newest release, 26.37.1, is not affected.

17.0.1 17.0.0 16.1.1 16.1.0 16.0.0 15.1.1 15.1.0 15.0.2 15.0.1 15.0.0 14.0.0 13.0.1 13.0.0 12.0.4 12.0.3 12.0.2 12.0.1 12.0.0 11.0.3 11.0.1 11.0.0 10.0.2 10.0.1 10.0.0 9.0.13 9.0.2 9.0.1 9.0.0 8.0.2 8.0.0 7.0.1 7.0.0 6.0.2 6.0.1 6.0.0 4.8.3 4.6.0 4.3.0.Final 4.3.0 4.2.1 4.0.0 3.4.3.Final 3.4.3 3.4.2.Final 3.4.0 3.2.1.Final 3.2.1 2.5.5 2.5.1 2.4.0 2.3.0 1.0.1

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Red Hat on 8 July 2022. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2022-1245 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.