# CVE-2022-1245: Keycloak vulnerable to privilege escalation on Token Exchange feature

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.47%, higher than 74% of CVEs (2026-12-02)
- Published: 2022-04-26T21:21:00.000Z
- Modified: 2026-07-16T03:59:27.995Z
- Also known as: GHSA-75p6-52g3-rqc8
- Weaknesses: CWE-639, CWE-862, CWE-863
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- keycloak: keycloak versions prior to 18.0.0
- org.keycloak:keycloak-services (Maven): before 18.0.0
- redhat keycloak: before 18.0.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1245> (advisory)
- <https://github.com/keycloak/keycloak/commit/76d83f46fad94ebcbedaa49e6daad458e2894e52> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2022-1245](https://www.cve.org/CVERecord?id=CVE-2022-1245), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-75p6-52g3-rqc8](https://github.com/advisories/GHSA-75p6-52g3-rqc8), CC-BY-4.0, modified 2026-07-16
- NVD: [CVE-2022-1245](https://nvd.nist.gov/vuln/detail/CVE-2022-1245), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-1245 · Whole record: https://cve.day/CVE-2022-1245.json · Rebuilt by cve.day 2026-11-25T22:58:12.761Z
