Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain realm administrator credentials or compromise upstream LDAP server
-
DeliveryConfigure or manipulate LDAP federation to point to malicious server
-
ExploitWait for user password authentication event in federated realm
-
InstallReturn malformed LDAP password policy response with invalid quantity fields
-
C2Trigger unbounded JVM heap allocation in Keycloak
-
ExecuteOutOfMemoryError terminates Keycloak JVM process
-
ImpactAll realms on affected node denied service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Input size validation
|
| Exploitation Conditions | Exploitation requires one of two high-privilege entry conditions: (1) the attacker holds realm administrator credentials within Keycloak and has configured LDAP user federation for that realm pointing to a malicious or attacker-controlled LDAP server, or (2) the attacker has compromised or is positioned to manipulate responses from an upstream LDAP server already trusted by an existing Keycloak realm federation configuration. The malicious LDAP server must be network-reachable from the Keycloak node, and the attack is triggered specifically during a password authentication request that processes an LDAP password policy response - meaning LDAP federation must be enabled and a user authentication event must occur. Exploitation is strictly limited to Keycloak instances with active LDAP user federation; deployments using only the built-in Keycloak database, Kerberos, SAML, or OIDC identity providers without LDAP federation are not affected by this attack path. Per the CVSS vector (PR:H), high-privilege access is confirmed as a prerequisite. |
| Impact | The CVSS 4.9 Medium score accurately reflects a constrained but non-trivial risk profile. The CVSS vector AV:N/AC:L confirms the attack is network-reachable with low complexity, but PR:H is the dominant limiting factor - only accounts with realm administrator privileges or the ability to control an upstream LDAP server can trigger the vulnerability. This eliminates opportunistic or unauthenticated exploitation. The availability impact is rated High (A:H) with Unchanged scope (S:U), meaning the crash is confined to the targeted node yet still catastrophic for that node's multi-realm tenancy. No EPSS score was provided, so exploitation probability cannot be quantified from probability models. The vulnerability is absent from the CISA KEV catalog and no POC has been identified, further supporting a lower-urgency prioritization for most environments. However, the blast radius deserves special attention: multi-tenant Keycloak deployments where a less-trusted realm administrator exists alongside high-value realms face meaningful lateral denial-of-service risk, since crashing one node disrupts all co-hosted realms regardless of which realm was targeted. |
| Exploit ScenarioDerived | A realm administrator in a shared Keycloak deployment configures a realm to federate user authentication against a malicious LDAP server under their control, or an attacker who has compromised a trusted upstream LDAP server waits for the next password authentication request from a Keycloak-federated user. When the authentication flow initiates, the attacker's LDAP server returns a crafted password policy response containing malformed quantity fields; Keycloak processes the response without validating the specified quantities, triggering runaway heap allocation that exhausts JVM memory. The resulting OutOfMemoryError terminates the Keycloak process, immediately denying authentication and session services to all realms on that node. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 28, 2026
Denial of service in Keycloak's LDAP federation layer allows an authenticated realm administrator - or an attacker who has compromised an upstream LDAP server - to crash the entire Keycloak JVM by inducing an OutOfMemoryError through a malformed LDAP password policy response. Because Keycloak typically serves multiple realms from a single JVM process, a successful attack denies service to all realms on the affected node, not just the targeted one. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
RemediationAI
No specific patched version was identified in the available data. Consult the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-9801 and BZ#2482473 at https://bugzilla.redhat.com/show_bug.cgi?id=2482473 for patch availability and exact fix versions; apply any vendor-released update as the primary remediation once confirmed. As a compensating control for the direct admin attack path, audit and minimize the number of accounts holding realm administrator privileges, as PR:H is required. For the upstream LDAP compromise path, enforce LDAPS or StartTLS with strict certificate validation for all Keycloak-to-LDAP connections and restrict LDAP connectivity to managed, trusted infrastructure only - disabling certificate validation eliminates this protection entirely, a meaningful trade-off. Deploying Keycloak with realm-to-node isolation (dedicated nodes per high-value realm) reduces blast radius but does not eliminate exploitability on any individual node. Disabling LDAP federation for realms that do not require it removes the attack surface entirely but may break existing user federation workflows.
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 platform that supports LDAP/Active Directory user federation, allowing it to delegate credential validation to upstream directory servers. During password authentication flows involving LDAP-federated realms, Keycloak processes LDAP password policy responses returned by the configured directory server. The root cause is CWE-1284 (Improper Validation of Specified Quantity in Input): Keycloak fails to validate or bound the quantity-type fields within incoming LDAP password policy responses, permitting a malformed response to drive unbounded heap allocation within the Keycloak JVM. Once the Java heap is exhausted, the JVM throws an unrecoverable OutOfMemoryError, terminating the process. No CPE strings were included in the available data; affected Keycloak versions must be confirmed via the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-9801. The Java tag in the report data confirms the attack surface is the JVM runtime environment.
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:H/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in Keycloak. A remote attacker with high privileges, such as a realm administrator configuring a malicious Lightweight Directory Access Protocol (LDAP) server or an attacker compromising an upstream LDAP server, could exploit this vulnerability. By sending a malformed LDAP password policy response during a password authentication request, the attacker can trigger an OutOfMemoryError. This causes the Keycloak Java Virtual Machine (JVM) to terminate, leading to a denial of service (DoS) for all realms on the affected node.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-32718
GHSA-f6r7-6w34-x2gp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB