製品・ソフトウェアに関する情報
レッドハットのbuild of keycloakにおけるオープンリダイレクトの脆弱性
Title レッドハットのbuild of keycloakにおけるオープンリダイレクトの脆弱性
Summary

Keycloakのリダイレクト操作中のURL検証ロジックに脆弱性が発見されました。悪意のあるリクエストを作成することで、攻撃者は検証を回避し、ユーザーを許可されていないURLにリダイレクトさせることが可能です。これにより、ドメイン内の機密情報が露出したり、さらなる攻撃が助長されたりする可能性があります。この脆弱性は、「Valid Redirect URIs」フィールドにワイルドカード(*)を設定したKeycloakクライアントに特に影響し、成功裏に悪用するにはユーザーの操作が必要です。問題の原因は、Keycloakと基盤となるJavaのURI実装がURLのuser-info部分の処理を異にしている点にあります。user-infoセクションに複数の@文字を用いて悪意のあるリダイレクトURLを構築した場合、JavaのURIパーサーはuser-infoを抽出できず、生のauthorityフィールドのみを認識します。その結果、Keycloakの検証チェックは不正なuser-infoを検出できず、ワイルドカード比較にフォールバックし、誤って悪意のあるリダイレクトを許可してしまいます。

Possible impacts ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 19, 2026, midnight
Registration Date June 5, 2026, 10:45 a.m.
Last Update June 5, 2026, 10:45 a.m.
CVSS3.0 : 重要
Score 8.1
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Affected System
レッドハット
build of keycloak 26.4 以上 26.4.12 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年06月05日]
  掲載
June 5, 2026, 10:45 a.m.

NVD Vulnerability Information
CVE-2026-7504
Summary

A flaw was found in Keycloak's URL validation logic during redirect operations. By crafting a malicious request, an attacker could bypass validation to redirect users to unauthorized URLs, potentially leading to the exposure of sensitive information within the domain or facilitating further attacks. This vulnerability specifically affects Keycloak clients configured with a wildcard (*) in the "Valid Redirect URIs" field and requires user interaction to be successfully exploited.

The issue stems from a discrepancy in how Keycloak and the underlying Java URI implementation handle the user-info component of a URL. If a malicious redirect URL is constructed using multiple @ characters in the user-info section, Java's URI parser fails to extract the user-info, leaving only the raw authority field. Consequently, Keycloak's validation check fails to detect the malformed user-info, falls back to a wildcard comparison, and incorrectly permits the malicious redirect.

Publication Date May 19, 2026, 9:16 p.m.
Registration Date May 20, 2026, 4:12 a.m.
Last Update May 21, 2026, 2:16 a.m.
Related information, measures and tools
Common Vulnerabilities List