Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl alternative path on same web server
-
DeliveryCraft redirect URI with wildcard bypass
-
ExploitTrick user into clicking malicious link
-
ExecutionCapture redirected access token
-
ImpactGain unauthorized access to user resources
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 | Attacker must control another path on the same web server as Keycloak. Requires authenticated user (PR:L) to click attacker-controlled link. Vulnerable when redirect URIs configured with wildcards in Keycloak. |
| Impact | Real-world risk is HIGH for multi-tenant or shared hosting environments where Keycloak coexists with other web applications. The CVSS 7.3 score reflects network-based attack vector with low complexity, but requires low-level authentication (PR:L) and user interaction (UI:R). This means an authenticated attacker must social-engineer a victim user into clicking a malicious authorization link. The High confidentiality and integrity impact (C:H/I:H) indicates stolen access tokens grant full victim account access. Critical risk factors: (1) Attack surface exists wherever Keycloak shares a web server with attacker-influenced content (virtual hosts, reverse proxies, container deployments). (2) Information disclosure tag confirms token theft enables downstream attacks. (3) No public exploit identified at time of analysis reduces immediate weaponization risk, but the attack concept is straightforward for skilled adversaries. EPSS data unavailable, but open redirect vulnerabilities in SSO systems historically attract exploitation due to token value. Not in CISA KEV, indicating no confirmed active exploitation campaigns. Priority depends on deployment architecture-critical for shared hosting, moderate for isolated Keycloak instances. SSVC decision factors: exploitation status is none-public, automatable is no (requires user interaction), technical impact is total (token theft = full account compromise). |
| Exploit ScenarioDerived | An attacker registers a legitimate user account in a Keycloak-protected application and deploys a malicious web application to another path on the same web server (for example, /malicious-app/ on the same domain as Keycloak at /auth/). The attacker crafts an OAuth authorization URL exploiting the wildcard redirect URI validation flaw to redirect to their controlled path. The attacker sends this URL to a victim user via phishing email or embedded link, claiming it initiates a legitimate SSO login. When the victim clicks the link and authenticates, Keycloak's flawed validation accepts the malicious redirect URI. The authorization code or access token is sent to the attacker's controlled path, allowing immediate token theft. The attacker uses the stolen token to impersonate the victim and access protected resources or sensitive data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 02, 2026
Open redirect in Red Hat Build of Keycloak allows authenticated attackers with control over another path on the same web server to bypass wildcard-based redirect URI validation and steal OAuth access tokens. Attack requires low complexity and user interaction (CVSS 7.3). EPSS and KEV status not available; no public exploit identified at time of analysis. This CWE-601 flaw enables token theft through maliciously crafted redirect flows, posing significant risk to SSO deployments where Keycloak shares a web server with attacker-controllable content.
RemediationAI
Consult Red Hat's official security advisory at https://access.redhat.com/security/cve/CVE-2026-3872 and associated Bugzilla entry https://bugzilla.redhat.com/show_bug.cgi?id=2445988 for vendor-released patch details and exact fixed versions. Patch availability per vendor advisory; released patched version not independently confirmed from provided data. As interim mitigation, avoid using wildcard patterns in Keycloak redirect URI configurations-register exact, fully-qualified redirect URIs for each client application instead. In multi-tenant or shared hosting deployments, isolate Keycloak to a dedicated domain or subdomain with strict path controls to prevent attacker control over sibling paths. Review all registered OAuth clients to identify wildcard redirect URIs and replace with explicit allowlists. Monitor authorization flows for anomalous redirect destinations. Apply the vendor patch immediately upon release and validate redirect URI configurations post-upgrade.
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 Red Hat's open-source identity and access management solution implementing OAuth 2.0, OpenID Connect, and SAML protocols. This vulnerability exploits CWE-601 (URL Redirection to Untrusted Site) in Keycloak's redirect URI validation logic. OAuth 2.0 authorization flows use redirect URIs to return authorization codes and tokens to client applications. Keycloak supports wildcard patterns in allowed redirect URIs for deployment flexibility. The flaw occurs when an attacker controls another path on the same web server hosting Keycloak-the wildcard validation can be bypassed to redirect the authorization flow to the attacker-controlled path. This breaks the fundamental OAuth security assumption that redirect URIs are pre-registered and trusted, allowing token interception. The affected product per CPE data is Red Hat Build of Keycloak (cpe:2.3:a:red_hat:red_hat_build_of_keycloak), Red Hat's commercially supported Keycloak distribution.
Know when Open Redirect 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:L/UI:R/S:U/C:H/I:H/A:N
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
Lifecycle Timeline
2DescriptionCVE.org
A flaw was found in Keycloak. This issue allows an attacker, who controls another path on the same web server, to bypass the allowed path in redirect Uniform Resource Identifiers (URIs) that use a wildcard. A successful attack may lead to the theft of an access token, resulting in information disclosure.
Blast Radius
ecosystem impact- 54 maven packages depend on org.keycloak:keycloak-services (26 direct, 28 indirect)
Ecosystem-wide dependent count for version 26.5.7.
Executive ViewAI
Red Hat Build of Keycloak contains an open redirect vulnerability (CVE-2026-3872) that allows authenticated attackers to bypass OAuth redirect validation and steal access tokens when Keycloak shares a web server with attacker-controlled paths. This directly threatens single sign-on infrastructure and could enable account compromise across integrated applications without requiring a vendor patch.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Replace wildcard-based redirect URI validation with exact-match whitelisting in Keycloak configuration; (2) Isolate Keycloak to dedicated web server infrastructure without third-party or user-controllable content paths; (3) Implement reverse proxy rules to enforce strict redirect destination validation before token issuance; (4) Enable OAuth token binding or sender-constrained tokens if supported; (5) Deploy anomaly detection on token usage patterns to identify compromised credentials; (6) Restrict network access to Keycloak's authorization endpoint by IP/domain.
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
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Related Vulnerabilities in Keycloak Authentication and Authorization Bypass
View all 5More in Open Redirect
View allA malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca
GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of
PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect
Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to
When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r
Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows
Open redirect vulnerability in Kaseya Virtual System Administrator (VSA) 7.x before 7.0.0.29, 8.x before 8.0.0.18, 9.0 b
Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li
Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3
Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp
Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites
Open redirect vulnerability in the Redirect function in stageshow_redirect.php in the StageShow plugin before 5.0.9 for
EUVD-2026-18206
GHSA-cjm2-j6cm-6p6m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB