{"id":"CVE-2026-9801","published":"2026-05-28T04:42:10Z","modified":"2026-06-26T06:46:40Z","title":"Keycloak: keycloak: denial of service via malformed ldap password policy response","vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00477,"percentile":0.4211,"provenance":"source"},"cwes":[{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:25097","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25098","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30049","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30050","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-9801","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482473","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":8.42},{"name":"CVSS severity","points":3.43}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]}],"workarounds":{"items":["To mitigate this vulnerability, ensure that Keycloak's LDAP user-storage providers are configured to connect only to trusted and secure LDAP servers. Avoid configuring LDAP federation with unverified or potentially malicious LDAP endpoints. Additionally, always use TLS for LDAP connections to prevent Man-in-the-Middle attacks. If an upstream LDAP server is compromised, it should be isolated and secured immediately."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-30T01:53:56.832854Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-ldap-federation","vulnerableRanges":["<26.6.3"],"patched":["26.6.3"],"from":["GHSA-f6r7-6w34-x2gp"],"provenance":"source"}],"summary":{"text":"A flaw in the Red Hat build of Keycloak 26.4 authentication component lets a malformed LDAP password policy response, received during a password authentication request, trigger an out-of-memory condition due to improper validation of the quantity specified in that input. An attacker with high privileges, such as a realm administrator configuring a malicious LDAP server or someone who has compromised an upstream LDAP server, can exploit it over the network without user interaction, causing the Keycloak JVM to terminate and denying service to all realms on the affected node.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:45Z"},"euvd":{"id":"EUVD-2026-32718","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-5967","published":"2024-06-18","fixed":"25.0.1","kev":false},{"cve":"CVE-2025-0604","published":"2025-01-22","fixed":"26.1.3","kev":false},{"cve":"CVE-2025-13467","published":"2025-11-25","fixed":"26.4.6","kev":false,"link":{"from":"CVE-2025-13467","to":"CVE-2026-9801","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.keycloak:keycloak-ldap-federation","fromFixed":"26.4.6","toFixed":"26.6.3","daysApart":184}]}},{"cve":"CVE-2026-9801","published":"2026-05-28","fixed":"26.6.3","kev":false}],"package":"Maven:org.keycloak:keycloak-ldap-federation"}}