Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Keycloak client with wildcard redirect URI
-
DeliveryCraft authorize URL with multi-@ user-info redirect_uri
-
ExploitPhish victim with crafted link
-
InstallVictim authenticates at legitimate Keycloak
-
C2Keycloak validation falls back to wildcard match
-
ExecuteAuthorization code redirected to attacker host
-
ImpactAttacker exchanges code for victim session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) a Keycloak client whose 'Valid Redirect URIs' field is configured with a wildcard '*' entry - wildcard redirect URIs are not Keycloak's default and are widely documented as an anti-pattern, (2) victim user interaction in the form of clicking an attacker-crafted authorization URL, and (3) a Java URI parser that omits userInfo when multiple '@' characters appear in the authority. Exploitation does NOT require authentication to Keycloak itself (PR:N), does NOT require local access (AV:N, AC:L), and works against any client meeting the wildcard precondition; it is limited by the need for UI:R (the victim must initiate or complete the OIDC redirect) and by the wildcard configuration requirement, which together substantially shrink the realistic attack surface relative to the raw 8.1 score. |
| Impact | CVSS 8.1 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N) reflects a network-reachable, unauthenticated flaw with low complexity that nevertheless requires user interaction, which is consistent with a phishing-style open redirect rather than a server takeover; the C:H/I:H rating is unusually high for a pure open redirect and likely captures downstream account-takeover risk when stolen authorization codes or tokens are leaked to the attacker host. No EPSS score, KEV listing, SSVC decision, or POC indicator was provided in the input, so real-world exploitation pressure cannot be quantified from the data at hand - the realistic risk is tightly bounded by the precondition that a deployed client be configured with a literal wildcard '*' in Valid Redirect URIs, which is a known anti-pattern but not a default. Treat this as a high-priority issue for any tenant that uses wildcard redirect URIs (especially confidential clients issuing authorization codes), and a lower priority where redirect URIs are explicitly enumerated. |
| Exploit ScenarioDerived | An attacker identifies a Keycloak client at a target organization whose 'Valid Redirect URIs' contains a wildcard, then sends a phishing email or chat message containing an OIDC authorization URL whose redirect_uri uses a multi-'@' user-info trick (e.g., https://login.victim.com@@attacker.example/cb). The victim clicks, authenticates to the real Keycloak, and Keycloak issues a redirect carrying the authorization code or token fragment to attacker.example, allowing the attacker to exchange it for the victim's session. No public exploit was identified at time of analysis, though the parser-differential primitive is straightforward to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 19, 2026
Open redirect in Red Hat build of Keycloak permits remote attackers to send victims to attacker-controlled hosts by abusing a parser discrepancy between Keycloak and Java's URI implementation during redirect URL validation. The flaw applies only to clients configured with a wildcard ('*') in the 'Valid Redirect URIs' field and requires the victim to click a crafted link, with no public exploit identified at time of analysis.
RemediationAI
Patch availability per vendor advisory should be confirmed directly at https://access.redhat.com/security/cve/CVE-2026-7504 and https://bugzilla.redhat.com/show_bug.cgi?id=2464128, as no exact fix version was provided in the input data. The most effective compensating control is to remove the wildcard from every client's 'Valid Redirect URIs' and replace it with an explicit allowlist of exact redirect URIs or scheme+host prefixes, which eliminates the vulnerable code path entirely at the cost of requiring each new redirect target to be registered. Where wildcards cannot be removed immediately for operational reasons, constrain them to the narrowest scheme/host pattern possible, audit existing clients for '*' entries via the admin REST API, and consider front-end URI sanitization at a reverse proxy to reject authorize-endpoint requests whose redirect_uri parameter contains multiple '@' characters - noting that proxy-level filtering can break legitimate flows that legitimately use user-info syntax.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak is a widely deployed open-source identity and access management platform; the affected component is the redirect URI validator used during OAuth2/OIDC authorization flows. The root cause is CWE-601 (URL Redirection to Untrusted Site / Open Redirect), driven by a parser-differential bug: when a URL contains multiple '@' characters in the user-info portion (e.g., 'https://trusted.example.com@@attacker.tld'), Java's java.net.URI parser does not populate the userInfo field and exposes only the raw authority string, while Keycloak's validation logic falls back to a permissive wildcard comparison and accepts the malformed authority as valid. The affected CPE is cpe:2.3:a:red_hat:red_hat_build_of_keycloak, confirming the Red Hat distribution as the in-scope product.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 61 maven packages depend on org.keycloak:keycloak-services (28 direct, 33 indirect)
Ecosystem-wide dependent count for version 26.6.2.
Executive ViewAI
Red Hat Keycloak authentication systems using unrestricted redirect settings are vulnerable to phishing attacks that can hijack user sessions and route users to attacker-controlled domains. Organizations relying on Keycloak for employee or customer authentication face elevated risk of account compromise and credential theft. No vendor-released patch identified at time of analysis; immediate configuration remediation is required.
Remove all wildcard ('*') entries from Valid Redirect URIs and replace with explicit, domain-specific URIs. Implement mandatory security awareness training focused on phishing and unusual redirect behavior. Monitor Keycloak authentication logs for patterns indicating redirect abuse attempts. Deploy network-level controls (WAF/proxy) to detect and block suspicious redirect patterns if Keycloak instances are internet-accessible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Affected Products (CPE)CVE.org
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-30890
GHSA-rp95-xpg9-c2cq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB