{"id":"CVE-2022-1245","aliases":["CVE-2022-1245","GHSA-75p6-52g3-rqc8"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak vulnerable to privilege escalation on Token Exchange feature","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se ha encontrado un fallo de escalada de privilegios en la funcionalidad token exchange de keycloak. Una falta de autorización permite que una aplicación cliente que tenga un token de acceso válido pueda intercambiar tokens para cualquier cliente de destino pasando el client_id del mismo. Esto podría permitir a un cliente conseguir acceso no autorizado a servicios adicionales","source":"nvd"}],"published":"2022-04-26T21:21:00.000Z","modified":"2026-07-16T03:59:27.995Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-639","CWE-862","CWE-863"],"affected":[{"ranges":[{"version":"keycloak versions prior to 18.0.0","status":"affected"}],"product":"keycloak","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"18.0.0"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"18.0.0"}],"vendor":"redhat","product":"keycloak","cpe":"cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1245","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/76d83f46fad94ebcbedaa49e6daad458e2894e52","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-1245","url":"https://www.cve.org/CVERecord?id=CVE-2022-1245","licence":"CVE Terms of Use","modified":"2024-08-02T23:55:24.704Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-75p6-52g3-rqc8","url":"https://github.com/advisories/GHSA-75p6-52g3-rqc8","licence":"CC-BY-4.0","modified":"2026-07-16T03:59:27.995Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-1245","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1245","licence":"Public domain","modified":"2026-06-17T04:22:05.027Z"}],"updatedAt":"2026-11-25T22:58:12.761Z","epss":{"score":0.01471,"percentile":0.74566,"date":"2026-12-02T12:00:21.000Z"}}