{"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-10-28T02:30:27.765447649Z","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":"0"},{"fixed":"ef47eee2dda29a0f08187ae67970323c28947f11"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"VersionTextExtraction","range":[{"introduced":"0"},{"fixed":"18.0.0"}]},{"range":[{"introduced":"0"},{"fixed":"18.0.0"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*"}]}}],"versions":["2.4.0.Test","1.3.0.Final","1.1.0.Beta2","1.0.0.Final","1.0-final","1.0-rc-1","1.0-beta-4","1.0-beta-2","1.0-beta-1","1.0-alpha-3","1.0-alpha-2","1.0-alpha-1","1.0-alpha-1-12062013"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1245.json"}}],"schema_version":"1.9.2"}