Keycloak: redirect_uri validation bypass

Summary

CVECVE-2023-6291
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-01-26 15:15:08 UTC
Updated2026-09-22 04:17:56 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 7.1 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

Problem Types: CWE-601 | CWE-601 URL Redirection to Untrusted Site ('Open Redirect')


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
3.1[email protected]Secondary7.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
3.1CNACVSS7.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Redhat Enterprise Linux 7.0 All All All
Operating System Redhat Enterprise Linux 8.0 All All All
Application Redhat Keycloak All All All All
Application Redhat Openshift Container Platform 4.11 All All All
Application Redhat Openshift Container Platform 4.12 All All All
Application Redhat Openshift Container Platform For Ibm Z 4.10 All All All
Application Redhat Openshift Container Platform For Ibm Z 4.9 All All All
Application Redhat Openshift Container Platform For Linuxone 4.10 All All All
Application Redhat Openshift Container Platform For Linuxone 4.9 All All All
Application Redhat Openshift Container Platform For Power 4.10 All All All
Application Redhat Openshift Container Platform For Power 4.9 All All All
Application Redhat Single Sign-on - All All All
Application Redhat Single Sign-on 7.6 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Build Of Keycloak 22 unaffected 22.0.7-1 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 22 unaffected 22-6 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 22 unaffected 22-9 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 22.0.7 Not specified Not specified
CNA Red Hat Red Hat Single Sign-On 7 Not specified Not specified
CNA Red Hat Red Hat Single Sign-On 7.6 For RHEL 7 unaffected 0:18.0.11-2.redhat_00003.1.el7sso * rpm Not specified
CNA Red Hat Red Hat Single Sign-On 7.6 For RHEL 7 unaffected 0:18.0.12-1.redhat_00001.1.el7sso * rpm Not specified
CNA Red Hat Red Hat Single Sign-On 7.6 For RHEL 8 unaffected 0:18.0.11-2.redhat_00003.1.el8sso * rpm Not specified
CNA Red Hat Red Hat Single Sign-On 7.6 For RHEL 8 unaffected 0:18.0.12-1.redhat_00001.1.el8sso * rpm Not specified
CNA Red Hat Red Hat Single Sign-On 7.6 For RHEL 9 unaffected 0:18.0.11-2.redhat_00003.1.el9sso * rpm Not specified
CNA Red Hat Red Hat Single Sign-On 7.6 For RHEL 9 unaffected 0:18.0.12-1.redhat_00001.1.el9sso * rpm Not specified
CNA Red Hat RHEL-8 Based Middleware Containers unaffected 7.6-38 * rpm Not specified
CNA Red Hat RHEL-8 Based Middleware Containers unaffected 7.6.6-2 * rpm Not specified
CNA Red Hat RHEL-8 Based Middleware Containers unaffected 7.6-41 * rpm Not specified
CNA Red Hat Single Sign-On 7.6.6 Not specified Not specified
CNA Red Hat Migration Toolkit For Applications 6 Not specified Not specified
CNA Red Hat Migration Toolkit For Applications 7 Not specified Not specified
CNA Red Hat OpenShift Serverless Not specified Not specified
CNA Red Hat Red Hat Data Grid 8 Not specified Not specified
CNA Red Hat Red Hat Decision Manager 7 Not specified Not specified
CNA Red Hat Red Hat Fuse 7 Not specified Not specified
CNA Red Hat Red Hat JBoss Data Grid 7 Not specified Not specified
CNA Red Hat Red Hat JBoss Enterprise Application Platform 6 Not specified Not specified
CNA Red Hat Red Hat Process Automation 7 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2024:0798 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
cve-details af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
access.redhat.com/errata/RHSA-2024:0801 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2024:0800 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/errata/RHSA-2024:0804 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
2251407 – (CVE-2023-6291) CVE-2023-6291 keycloak: redirect_uri validation bypass af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Vendor Advisory
access.redhat.com/errata/RHSA-2024:0799 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2023-11-24T00:00:00.000ZReported to Red Hat.
CNA2023-12-14T00:00:00.000ZMade public.

Workarounds

CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Legacy QID Mappings

  • 996431 Java (Maven) Security Update for org.keycloak:keycloak-services (GHSA-mpwq-j3xf-7m5w)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report