Skip to main content

Keycloak CVE-2026-7504

| EUVDEUVD-2026-30890 HIGH
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-05-19 redhat GHSA-rp95-xpg9-c2cq
8.1
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify Keycloak client with wildcard redirect URI
  2. Delivery
    Craft authorize URL with multi-@ user-info redirect_uri
  3. Exploit
    Phish victim with crafted link
  4. Install
    Victim authenticates at legitimate Keycloak
  5. C2
    Keycloak validation falls back to wildcard match
  6. Execute
    Authorization code redirected to attacker host
  7. Impact
    Attacker 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

maven org.keycloak:keycloak-services fix: 26.6.2

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

Vendor (redhat) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Red Hat 8.1 HIGH

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 61 maven packages depend on org.keycloak:keycloak-services (28 direct, 33 indirect)

Ecosystem-wide dependent count for version 26.6.2.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Affected Products (CPE)CVE.org

cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy