Skip to content
Medium 6.1

Open Redirect in keycloak

CVE-2024-7260 First seen on SecPulse

Summary

Vulnerability in keycloak (CVE-2024-7260). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to 24.0.7 or later.

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2024-7260 has been found in keycloak.
Risk of unauthorized operations or information disclosure.
What to do: upgrade keycloak to 24.0.7 or later.
If unsure, ask your IT team or search "keycloak CVE-2024-7260" on the vendor's site.

CVE-2024-7260 (keycloak) — CWE-601
Attack vector: remote (network-reachable) / unauthenticated
Patched: 24.0.7 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

A vulnerability (CWE-601) exists in keycloak.

Affected scope

Check the vendor advisory for the affected versions of keycloak.

Severity

Severity: ?. Risk of unauthorized operations or information disclosure.

How to fix

Update to 24.0.7.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'keycloak' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'keycloak' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で keycloak を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade keycloak to 24.0.7

    ステージング環境で 24.0.7 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
Bitnamikeycloak
< 24.0.7→ 24.0.7
GitHubkeycloak
< 24.0.7→ 24.0.7
Red HatRed Hat Build of Keycloak —
Red HatRed Hat build of Keycloak 24 —
Original description The description as published by the source.

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.

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details