{"id":"CVE-2023-0657","aliases":["CVE-2023-0657","GHSA-7fpj-9hr8-28vh"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak: impersonation via logout token exchange","summary":"A flaw was found in Keycloak. This issue occurs due to improperly enforcing token types when validating signatures locally. This could allow an authenticated attacker to exchange a logout token for an access token and possibly gain access to data outside of enforced permissions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in Keycloak. This issue occurs due to improperly enforcing token types when validating signatures locally. This could allow an authenticated attacker to exchange a logout token for an access token and possibly gain access to data outside of enforced permissions.","source":"cvelist"},{"lang":"en","text":"Keycloak was found to not properly enforce token types when validating signatures locally. An authenticated attacker could use this flaw to exchange a logout token for an access token and possibly gain access to data outside of enforced permissions.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una falla en Keycloak. Este problema ocurre debido a la aplicación incorrecta de tipos de tokens al validar firmas localmente. Esto podría permitir que un atacante autenticado intercambie un token de cierre de sesión por un token de acceso y posiblemente obtenga acceso a datos fuera de los permisos aplicados.","source":"nvd"}],"published":"2024-04-17T18:25:59.000Z","modified":"2026-09-10T03:50:12.435Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"}],"cwes":["CWE-273","CWE-284","CWE-287","CWE-290","CWE-347"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"22.0.10","status":"affected"},{"type":"semver","introduced":"23.0.0","fixed":"24.0.3","status":"affected"}],"package":"keycloak","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"22.0.10-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:22::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"22-13","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:22::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"22-16","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 22","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:22::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 22.0.10","package":"keycloak","cpe":"cpe:/a:redhat:build_keycloak:22","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"keycloak","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"22.0.10"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"23.0.0","status":"affected","fixed":"24.0.3"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:1867","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:1868","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-0657","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2166728","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-7fpj-9hr8-28vh","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0657","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-17T16:18:32.777Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-0657","url":"https://www.cve.org/CVERecord?id=CVE-2023-0657","licence":"CVE Terms of Use","modified":"2024-11-17T16:18:51.475Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7fpj-9hr8-28vh","url":"https://github.com/advisories/GHSA-7fpj-9hr8-28vh","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:12.435Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-0657","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0657","licence":"Public domain","modified":"2026-06-17T05:26:01.560Z"}],"updatedAt":"2026-11-25T22:58:34.374Z","epss":{"score":0.003,"percentile":0.24484,"date":"2026-12-02T12:00:21.000Z"}}