{"id":"CVE-2022-1245","state":"PUBLISHED","title":"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 f","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.","publishedAt":"2022-07-07T23:39:22.000Z","updatedAt":"2024-08-02T23:55:24.704Z","severity":null,"assigner":"redhat","products":["n/a keycloak"],"affected":[{"vendor":"n/a","product":"keycloak","versions":[{"version":"keycloak versions prior to 18.0.0","status":"affected"}]}],"references":["https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8"],"weaknesses":["CWE-862"],"ingestedAt":"2026-10-29T19:49:29.138Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/1xxx/CVE-2022-1245.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-1245","state":"PUBLISHED","datePublished":"2022-07-07T23:39:22.000Z","dateUpdated":"2024-08-02T23:55:24.704Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2022-04-05T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"keycloak","versions":[{"version":"keycloak versions prior to 18.0.0","status":"affected"}]}],"references":[{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-862","description":"CWE-862->CWE-863","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2022-07-07T23:39:22.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"secalert@redhat.com","ID":"CVE-2022-1245","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"keycloak","version":{"version_data":[{"version_value":"keycloak versions prior to 18.0.0"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-862->CWE-863"}]}]},"references":{"reference_data":[{"name":"https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8","refsource":"MISC","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-75p6-52g3-rqc8","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:55:24.704Z"}}]}}}