LiveActive security incident?Get immediate response
CVE Record

CVE-2023-6291: Keycloak: redirect_uri validation bypass

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.

HighCVSS 7.1Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Keycloak can incorrectly accept some redirect_uri values, letting an attacker bypass intended host restrictions. If a user is tricked into the affected login flow, an access token could be stolen and used to impersonate that user.

Executive priority

Treat as high priority for internet-facing or business-critical identity systems. Token theft in SSO can become account impersonation across dependent applications, but current sources do not confirm active exploitation.

Technical view

CVE-2023-6291 is a CWE-601 redirect_uri validation bypass in Red Hat Keycloak-related products. The CVSS 3.1 score is 7.1, network exploitable, low complexity, no privileges required, and user interaction required, with scope changed and low confidentiality, integrity, and availability impact.

Likely exposure

Exposure is most likely where affected Red Hat build of Keycloak 22, Red Hat SSO 7.6 packages, RHEL 8 middleware containers, or Migration Toolkit for Applications 6 use Keycloak-based authentication.

Exploitation context

The source bundle does not show CISA KEV listing or cited active exploitation. The attack requires user interaction and could lead to access token theft, enabling user impersonation if successful.

Researcher notes

The key evidence is Red Hat's description of redirect_uri validation bypass and access-token theft impact. Affected status is product-specific; several related Red Hat products are explicitly listed as unaffected, so validation should be version- and channel-specific.

Mitigation direction

  • Identify deployments matching the affected Red Hat products and package versions.
  • Apply the relevant Red Hat RHSA guidance for each affected product stream.
  • Check Red Hat CVE guidance for product-specific fixed packages or mitigations.
  • Review client redirect URI allowlists for unnecessarily broad trusted hosts.
  • Monitor identity-provider logs for suspicious redirects and token use.

Validation and detection

  • Inventory Keycloak, Red Hat SSO, and MTA instances by product stream and package version.
  • Compare installed package versions against the affected entries in the CVE record.
  • Confirm applicable RHSA advisories have been applied in each environment.
  • Validate that sensitive clients use narrowly scoped redirect URI allowlists.
  • Review recent authentication logs for unexpected redirect destinations.
Prepared
Confidence
high
Sources
12

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-601: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2023-6291 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.1 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
15Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.1CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L2.83.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.1High
CVSS 3.1 vector shape for CVE-2023-6291Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Red HatRed Hat build of Keycloak 22rhbk/keycloak-operator-bundle, 22.0.7-1affected
Red HatRed Hat build of Keycloak 22rhbk/keycloak-rhel9, 22-6affected
Red HatRed Hat build of Keycloak 22rhbk/keycloak-rhel9-operator, 22-9affected
Red HatRed Hat build of Keycloak 22.0.7See advisoryunaffected
Red HatRed Hat Single Sign-On 7rh-sso7-keycloakunaffected
Red HatRed Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak, 0:18.0.11-2.redhat_00003.1.el7ssoaffected
Red HatRed Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak, 0:18.0.12-1.redhat_00001.1.el7ssoaffected
Red HatRed Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak, 0:18.0.11-2.redhat_00003.1.el8ssoaffected
Red HatRed Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak, 0:18.0.12-1.redhat_00001.1.el8ssoaffected
Red HatRed Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloak, 0:18.0.11-2.redhat_00003.1.el9ssoaffected
Red HatRed Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloak, 0:18.0.12-1.redhat_00001.1.el9ssoaffected
Red HatRHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8, 7.6-38affected
Red HatRHEL-8 based Middleware Containersrh-sso-7/sso7-rhel8-operator-bundle, 7.6.6-2affected
Red HatRHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8, 7.6-41affected
Red HatSingle Sign-On 7.6.6rh-sso7-keycloakunaffected
Red HatMigration Toolkit for Applications 6keycloakaffected
Red HatMigration Toolkit for Applications 7keycloakunaffected
Red HatOpenShift Serverlesskeycloakunaffected
Red HatRed Hat Data Grid 8keycloakunaffected
Red HatRed Hat Decision Manager 7keycloakunaffected
Red HatRed Hat Fuse 7keycloakunaffected
Red HatRed Hat JBoss Data Grid 7keycloakunaffected
Red HatRed Hat JBoss Enterprise Application Platform 6rh-sso7-keycloakunaffected
Red HatRed Hat Process Automation 7keycloakunaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-601 · source CWE mapping

URL Redirection to Untrusted Site ('Open Redirect')

URL Redirection to Untrusted Site ('Open Redirect') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.