CVE-2024-8883Keycloak: vulnerable redirect uri validation results in open redirec
- 6.1MediumCVSS base score
- 2.1%Exploitation in 30 daysEPSS · top 18% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
A misconfiguration flaw was found in Keycloak. This issue can allow an attacker to redirect users to an arbitrary URL if a 'Valid Redirect URI' is set to http://localhost or http://127.0.0.1, enabling sensitive information such as authorization codes to be exposed to the attacker, potentially leading to session hijacking.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it.
Show the exploits1
Nuclei templates1 template
- Keycloak - Open Redirect (Nuclei template) (opens in a new tab)
http/cves/2024/CVE-2024-8883.yamlSeverity medium
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By redhat
- 3 days later
· 3 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 2.1% · top 18% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Affected products
keycloak-services
- affected < 22.0.12
- affected 23.0.0 – < 24.0.7
- affected 25.0.0 – < 25.0.5
Red Hat · Red Hat Build of Keycloak
All versions: unaffected
Red Hat · Red Hat Build of Keycloak
All versions: unaffected
Red Hat · Red Hat build of Keycloak 22
- unaffected 22.0.13-1 – < *
Red Hat · Red Hat build of Keycloak 22
- unaffected 22-18 – < *
Red Hat · Red Hat build of Keycloak 22
- unaffected 22-21 – < *
Red Hat · Red Hat build of Keycloak 24
- unaffected 24.0.8-1 – < *
Red Hat · Red Hat build of Keycloak 24
- unaffected 24-17 – < *
Red Hat · Red Hat build of Keycloak 24
- unaffected 24-17 – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8
All versions: unaffected
Red Hat · Red Hat JBoss Enterprise Application Platform 8
All versions: unaffected
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:800.4.1-1.GA_redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:8.0.4-3.GA_redhat_00007.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.33.0-1.redhat_00015.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 1:2.0.0-2.redhat_00005.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:1.8.0-2.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.2.0-2.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:1.16.1-2.redhat_00007.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:3.2.2-28.redhat_2.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.15.1-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:3.14.0-2.redhat_00006.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:4.0.5-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 1:2.0.0-2.redhat_00005.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.0.1-1.redhat_00002.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:0.1.0-2.redhat_00010.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:1.12.284-2.redhat_00002.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:1.2.5-2.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:800.4.0-1.GA_redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.1.0-4.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:6.2.31-1.Final_redhat_00002.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:8.0.1-3.Final_redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:0.8.1-2.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:1.1.3-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:3.0.1-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:1.1.3-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:3.5.3-1.Final_redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:4.0.2-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:5.3.10-1.Final_redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.22.1-1.redhat_00002.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:6.0.3-1.Final_redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:9.37.3-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:9.6.0-1.redhat_00002.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.3.0-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.0.1-3.Final_redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:3.0.1-2.Final_redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:3.0.4-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:8.0.0-6.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.0.16-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:2.2.0-1.redhat_00001.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8
- unaffected 0:8.0.4-2.GA_redhat_00005.1.el8eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:800.4.1-1.GA_redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:8.0.4-3.GA_redhat_00007.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.33.0-1.redhat_00015.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 1:2.0.0-2.redhat_00005.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:1.8.0-2.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.2.0-2.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:1.16.1-2.redhat_00007.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:3.2.2-28.redhat_2.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.15.1-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:3.14.0-2.redhat_00006.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:4.0.5-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 1:2.0.0-2.redhat_00005.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.0.1-1.redhat_00002.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:0.1.0-2.redhat_00010.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:1.12.284-2.redhat_00002.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:1.2.5-2.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:800.4.0-1.GA_redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.1.0-4.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:6.2.31-1.Final_redhat_00002.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:8.0.1-3.Final_redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:0.8.1-2.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:1.1.3-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:3.0.1-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:1.1.3-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:3.5.3-1.Final_redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:4.0.2-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:5.3.10-1.Final_redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.22.1-1.redhat_00002.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:6.0.3-1.Final_redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:9.37.3-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:9.6.0-1.redhat_00002.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.3.0-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.0.1-3.Final_redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:3.0.1-2.Final_redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:3.0.4-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:8.0.0-6.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.0.16-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:2.2.0-1.redhat_00001.1.el9eap – < *
Red Hat · Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9
- unaffected 0:8.0.4-2.GA_redhat_00005.1.el9eap – < *
Red Hat · Red Hat Single Sign-On 7
All versions: unaffected
Red Hat · Red Hat Single Sign-On 7.6 for RHEL 7
- unaffected 0:18.0.18-1.redhat_00001.1.el7sso – < *
Red Hat · Red Hat Single Sign-On 7.6 for RHEL 8
- unaffected 0:18.0.18-1.redhat_00001.1.el8sso – < *
Red Hat · Red Hat Single Sign-On 7.6 for RHEL 9
- unaffected 0:18.0.18-1.redhat_00001.1.el9sso – < *
Red Hat · RHEL-8 based Middleware Containers
- unaffected 7.6-54 – < *
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.keycloak:keycloak-servicesGHSA-w8gr-xwp4-r9f7 (opens in a new tab)
What to do
Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References
References17
- RHSA-2024:10385 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:10386 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6878 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6879 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6880 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6882 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6886 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6887 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6888 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6889 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:6890 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8823 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8824 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8826 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-8883 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2312511 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://github.com/keycloak/keycloak/blob/main/services/src/main/java/org/keycloak/protocol/oidc/utils/RedirectUtils.java (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-3152 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-w8gr-xwp4-r9f7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-8883)Record last updated .