CVE-2023-6291
highpriority · track · 28EPSS 0.009 · 61 %ileDEEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–7.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (29)
Products and version ranges known to be affected.
- redhat migration toolkit for applications= 6.0nvdUScpe:2.3:a:redhat:migration_toolkit_for_applications:*:*:*:*:*:*:*:*
- redhat migration toolkit for applications= 7.0nvdUScpe:2.3:a:redhat:migration_toolkit_for_applications:*:*:*:*:*:*:*:*
- redhat openshift container platform= 4.11nvdUScpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*
- redhat openshift container platform= 4.12nvdUScpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-3156Keycloak: Mehrere SchwachstellenDeutsch2023-12-14csaf · cert_bundDE
Ein entfernter, anonymer oder authentisierter Angreifer kann mehrere Schwachstellen in Keycloak ausnutzen, um Sicherheitsvorkehrungen zu umgehen oder einen Denial of Service zu verursachen.
- GHSA-mpwq-j3xf-7m5wThe redirect_uri validation logic allows for bypassing explicitly allowed hosts that would otherwise be restricted2023-12-21ghsa · osvUS
An issue was found in the redirect_uri validation logic that allows for a bypass of otherwise explicitly allowed hosts. The problem arises in the verifyRedirectUri method, which attempts to enforce rules on user-controllable input, but essentially causes a desynchronization in how Keycloak and browsers interpret URLs. Keycloak, for example, receives "[www%2ekeycloak%2eorg%2fapp%2f:y@example.com](https://www%2ekeycloak%2eorg%2fapp%2f:y@example.com/)" and thinks the authority to be keycloak.org when it is actually example.com. This happens because the validation logic is performed on a URL decoded version, which no longer represents the original input. ### Acknowledgements Karel Knibbe
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (33)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2023-6291cnnvd
- https://cxsecurity.com/cveshow/CVE-2023-6291/cnnvd
- https://github.com/keycloak/keycloak/commit/1241bd291901667a13506d6fb123ba4344e618eePatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2023-6291cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.7509cnnvd
- https://access.redhat.com/errata/RHSA-2023:7854enisa_euvd
- https://access.redhat.com/errata/RHSA-2023:7855enisa_euvd
- https://access.redhat.com/errata/RHSA-2023:7856enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan