# CVE-2023-6291: Keycloak: redirect_uri validation bypass

- Severity: High 7.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Published: 2023-12-21T18:25:30.000Z
- Modified: 2026-11-04T21:17:27.170Z
- Also known as: GHSA-mpwq-j3xf-7m5w
- Weaknesses: CWE-20, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- rhbk/keycloak-operator-bundle: no versions given (not affected: from 22.0.7-1 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 22-6 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 22-9 before *)
- Red Hat Red Hat build of Keycloak 22.0.7: no versions given
- rh-sso7-keycloak: no versions given (not affected: from 0:18.0.11-2.redhat_00003.1.el7sso before *; from 0:18.0.12-1.redhat_00001.1.el7sso before *; from 0:18.0.11-2.redhat_00003.1.el8sso before *; from 0:18.0.12-1.redhat_00001.1.el8sso before *; from 0:18.0.11-2.redhat_00003.1.el9sso before *; from 0:18.0.12-1.redhat_00001.1.el9sso before *)
- rh-sso-7/sso76-openshift-rhel8: no versions given (not affected: from 7.6-38 before *; from 7.6-41 before *)
- rh-sso-7/sso7-rhel8-operator-bundle: no versions given (not affected: from 7.6.6-2 before *)
- keycloak: no versions given
- org.keycloak:keycloak-services (Maven): before 23.0.3
- redhat keycloak: before 22.0.7
- redhat single_sign-on: 7.6
- redhat openshift_container_platform: 4.11; 4.12
- redhat openshift_container_platform_for_ibm_z: 4.9; 4.10
- redhat openshift_container_platform_for_linuxone: 4.9; 4.10
- redhat openshift_container_platform_for_power: 4.9; 4.10
- redhat migration_toolkit_for_applications: 6.0; 7.0

## Every score

- redhat: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`

## References

- <https://access.redhat.com/errata/RHSA-2023:7854> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7855> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7856> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7857> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7858> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7860> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7861> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2024:0798> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0799> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0800> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0801> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0804> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-6291> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2251407> (issue-tracking, vendor-advisory, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-mpwq-j3xf-7m5w> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-6291> (advisory)
- <https://github.com/keycloak/keycloak/commit/b2e91105315ccf2c1df549b4f6c5948322cbfd1b> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2023-6291](https://www.cve.org/CVERecord?id=CVE-2023-6291), CVE Terms of Use, modified 2026-11-04
- GitHub Advisory Database: [GHSA-mpwq-j3xf-7m5w](https://github.com/advisories/GHSA-mpwq-j3xf-7m5w), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-6291](https://nvd.nist.gov/vuln/detail/CVE-2023-6291), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2023-6291 · Whole record: https://cve.day/CVE-2023-6291.json · Rebuilt by cve.day 2026-11-25T22:58:32.267Z
