Medium

Keycloak Open Redirect vulnerability

  • Disclosed: 09.09.2024
  • Updated: 11.10.2026 13:20

An open redirect vulnerability was found in Keycloak. A specially crafted URL can be constructed where the referrer and referrer_uri parameters are made to trick a user to visit a malicious webpage. A trusted URL can trick users and automation into believing that the URL is safe, when, in fact, it redirects to a malicious server. This issue can result in a victim inadvertently trusting the destination of the redirect, potentially leading to a successful phishing attack or other types of attacks.

Once a crafted URL is made, it can be sent to a Keycloak admin via email for example. This will trigger this vulnerability when the user visits the page and clicks the link. A malicious actor can use this to target users they know are Keycloak admins for further attacks. It may also be possible to bypass other domain-related security checks, such as supplying this as a OAuth redirect uri. The malicious actor can further obfuscate the redirect_uri using URL encoding, to hide the text of the actual malicious website domain.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.keycloak:keycloak-core < 24.0.7 24.0.7

References

CVSS score 4.4/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Weakness (CWE)
CWE-601
Platform
Java / Kotlin (Maven)
Package
org.keycloak:keycloak-core
Disclosed
09.09.2024
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-g4gc-rh26-m3p5 - CC BY 4.0

Vulnerability history: org.keycloak:keycloak-core

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (49) in the archive
Total entries
49
First → latest
10.2018 02.2025
Without a fix
5
Exploited in attacks
0

Severity breakdown

  • Critical 3
  • High 14
  • Medium 31
  • Low 1

Disclosures per year

  1. 2018: 9
  2. 2019: 4
  3. 2020: 4
  4. 2021: 5
  5. 2022: 17
  6. 2023: 4
  7. 2024: 5
  8. 2025: 1
  9. 2026: 0
Severity:
  1. High · 6.5 CVE-2023-6841 < 24.0.0 24.0.0
  2. Keycloak Open Redirect vulnerability this entry
    Medium · 4.4 CVE-2024-7260 < 24.0.7 24.0.7
  3. High · 8.8 CVE-2023-4918 >= 22.0.2, < 22.0.3 22.0.3
  4. Critical · 9.1 CVE-2019-14837 < 8.0.0 8.0.0
  5. High · 8.8 CVE-2020-27826 < 12.0.0 12.0.0
  6. High · 7.3 CVE-2021-20202 < 13.0.0 13.0.0
  7. High · 8.8 CVE-2020-1714 < 11.0.0 11.0.0
  8. High · 8.1 CVE-2020-14389 < 12.0.0 12.0.0
  9. High · 7.2 CVE-2019-10170 < 8.0.0 8.0.0
  10. Critical · 9.6 CVE-2021-20195 < 13.0.0 13.0.0
  11. Critical · 9.8 CVE-2020-1731 < 8.0.2 8.0.2
  12. High · 8.1 CVE-2018-14637 < 4.6.0 4.6.0
  13. High · 7.5 CVE-2014-3651 < 1.0.3 1.0.3
  14. High · 7.5 CVE-2017-2646 < 2.5.5 2.5.5
  15. High · 8.1 CVE-2016-8609 < 2.3.0 2.3.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.