CVE-2026-9801: Keycloak Vulnerable to Improper Validation of Specified Quantity in Input
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.
Published May 28, 2026 · Updated Jul 1, 2026
Affected packages
org.keycloak:keycloak-ldap-federation
- Ecosystem
- Maven
- Affected
- < 26.6.3
- Fixed in
- 26.6.3
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-ldap-federation
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-9801
- https://access.redhat.com/security/cve/CVE-2026-9801
- https://bugzilla.redhat.com/show_bug.cgi?id=2482473
- https://access.redhat.com/errata/RHSA-2026:25098
- https://access.redhat.com/errata/RHSA-2026:25097
- https://access.redhat.com/errata/RHSA-2026:30049
- https://access.redhat.com/errata/RHSA-2026:30050
- https://github.com/keycloak/keycloak/issues/49434
- https://github.com/keycloak/keycloak/pull/49514
- https://github.com/keycloak/keycloak/commit/2c4fe42235ba8c265b1da3a30541a270d5bd8c39
- https://github.com/advisories/GHSA-f6r7-6w34-x2gp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2025-13467
Keycloak LDAP User Federation provider enables admin-triggered untrusted Java deserialization
medium5.5Dec 19, 2025CVE-2025-0604
Authentication Bypass Due to Missing LDAP Bind After Password Reset in Keycloak
medium5.4Mar 10, 2025CVE-2024-5967
Keycloak leaks configured LDAP bind credentials through the Keycloak admin console
low2.7Jun 21, 2024
