{"id":"CVE-2022-1245","details":"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.","aliases":["GHSA-75p6-52g3-rqc8"],"modified":"2026-08-12T03:51:43.853728880Z","published":"2022-07-07T23:39:22Z","database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-862"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1245.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1245.json"},{"type":"ADVISORY","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1245"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/keycloak/keycloak","events":[{"introduced":"ef47eee2dda29a0f08187ae67970323c28947f11"},{"fixed":"ef47eee2dda29a0f08187ae67970323c28947f11"}],"database_specific":{"cpe":"cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"keycloak versions prior to 18.0.0"},{"last_affected":"keycloak versions prior to 18.0.0"},{"introduced":"0"},{"fixed":"18.0.0"}],"source":["AFFECTED_FIELD","CPE_RANGE"]}}],"versions":["keycloak versions prior to 18.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1245.json"}}],"schema_version":"1.9.0"}