CVE-2022-1245 json
Keycloak vulnerable to privilege escalation on Token Exchange feature
published 4y ago modified 3mo ago also GHSA-75p6-52g3-rqc8 , EUVD-2022-1660
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.keycloak:keycloak-services 18.0.0
- redhat keycloak 18.0.0
- rh-sso7-keycloak red hat single sign on 7.5 15.0.6-1.redhat_00002.1.el7sso
- rh-sso7-keycloak-server red hat single sign on 7.5 15.0.6-1.redhat_00002.1.el7sso
- rh-sso7-keycloak red hat single sign on 7.5 15.0.6-1.redhat_00002.1.el8sso
- rh-sso7-keycloak-server red hat single sign on 7.5 15.0.6-1.redhat_00002.1.el8sso
red hat advisories RHSA-2022:1711RHSA-2022:1712
Is CVE-2022-1245 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-1245 updated cvss 8.0
keycloak: Privilege escalation vulnerability on Token Exchange
-
Red Hat Middleware Containers for OpenShift rh-sso-7/sso75-openshift-rhel8 7.5-26, rh-sso-7/sso7-rhel8-operator-bundle 7.5.2-8fixed: vendor fix RHSA-2022:1713
-
Red Hat Single Sign-On 7fixed: vendor fix RHSA-2022:1709
-
Red Hat Single Sign-On 7.5 for RHEL 7 Server rh-sso7-keycloak 15.0.6-1.redhat_00002.1.el7sso, rh-sso7-keycloak-server 15.0.6-1.redhat_00002.1.el7ssofixed: vendor fix RHSA-2022:1711
-
Red Hat Single Sign-On 7.5 for RHEL 8 rh-sso7-keycloak 15.0.6-1.redhat_00002.1.el8sso, rh-sso7-keycloak-server 15.0.6-1.redhat_00002.1.el8ssofixed: vendor fix RHSA-2022:1712
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.45% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-services | <18.0.0 |
18.0.0 |
Affected products
- n/a keycloak
Classification
References
Sources
- CVE List CVE-2022-1245
- GitHub Advisory GHSA-75p6-52g3-rqc8
- NVD CVE-2022-1245
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.