Skip to main content

Keycloak EUVDEUVD-2026-32718

| CVE-2026-9801 MEDIUM
Improper Validation of Specified Quantity in Input (CWE-1284)
2026-05-28 secalert@redhat.com GHSA-f6r7-6w34-x2gp
4.9
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

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

  1. Recon
    Obtain realm administrator credentials or compromise upstream LDAP server
  2. Delivery
    Configure or manipulate LDAP federation to point to malicious server
  3. Exploit
    Wait for user password authentication event in federated realm
  4. Install
    Return malformed LDAP password policy response with invalid quantity fields
  5. C2
    Trigger unbounded JVM heap allocation in Keycloak
  6. Execute
    OutOfMemoryError terminates Keycloak JVM process
  7. Impact
    All 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

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

maven org.keycloak:keycloak-ldap-federation fix: 26.6.3

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

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

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

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

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 33 maven packages depend on org.keycloak:keycloak-ldap-federation (5 direct, 28 indirect)

Ecosystem-wide dependent count for version 26.6.3.

Threat Intelligence Overview

EPSS Score
0.3%
Top 48% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:redhat: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