{"id":"CVE-2023-6291","summary":"Keycloak: redirect_uri validation bypass","details":"A flaw was found in the redirect_uri validation logic in Keycloak. This issue may allow a bypass of otherwise explicitly allowed hosts. A successful attack may lead to an access token being stolen, making it possible for the attacker to impersonate other users.","aliases":["GHSA-mpwq-j3xf-7m5w"],"modified":"2026-08-12T03:30:51.212734211Z","published":"2024-01-26T14:23:43.185Z","database_specific":{"cwe_ids":["CWE-601"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6291.json","cna_assigner":"redhat"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://access.redhat.com/jbossnetwork/restricted/listSoftware.html"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7854"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7855"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7856"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7857"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7858"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7860"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7861"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0798"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0799"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0800"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0801"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0804"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2023-6291"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6291.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6291"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2251407"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/keycloak/keycloak","events":[{"introduced":"0"},{"fixed":"0ccd72b0b06a6d30c17a8f951860be3d6de9dabf"}],"database_specific":{"cpe":"cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"22.0.7"}],"source":"CPE_RANGE"}}],"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/osv-test-cve-osv-conversion/osv-output/CVE-2023-6291.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L"}]}