CVE-2024-9666: Keycloak proxy header handling Denial-of-Service (DoS) vulnerability
Keycloak versions 26 and earlier are vulnerable to a denial-of-service (DoS) attack through improper handling of proxy headers. When Keycloak is configured to accept incoming proxy headers, it may accept non-IP values, such as obfuscated identifiers, without proper validation.
Published Nov 25, 2024
Affected packages
org.keycloak:keycloak-quarkus-server
- Ecosystem
- Maven
- Affected
- < 24.0.9
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-quarkus-server
org.keycloak:keycloak-quarkus-server
- Ecosystem
- Maven
- Affected
- >= 25.0.0, < 26.0.6
- Fixed in
- 26.0.6
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-quarkus-server
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Keycloak versions 26 and earlier are vulnerable to a denial-of-service (DoS) attack through improper handling of proxy headers. When Keycloak is configured to accept incoming proxy headers, it may accept non-IP values, such as obfuscated identifiers, without proper validation. This can lead to costly DNS resolution operations, which an attacker could exploit to tie up IO threads and potentially cause a denial of service.
The attacker must have access to send requests to a Keycloak instance that is configured to accept proxy headers, specifically when reverse proxies do not overwrite incoming headers, and Keycloak is configured to trust these headers.
For Keycloak version 26, for successful exploitation includes: the realm must have SslRequired=EXTERNAL (the default), HTTP must be enabled, the instance must not be using a full hostname URL, access must come from behind a proxy (assuming the proxy overwrites the X-Forwarded-For header), and trusted proxies must not be set or must incorrectly trust the client from which the request is originating.
References
- https://github.com/keycloak/keycloak/security/advisories/GHSA-jgwc-jh89-rpgq
- https://nvd.nist.gov/vuln/detail/CVE-2024-9666
- https://github.com/keycloak/keycloak/issues/35216
- https://access.redhat.com/errata/RHSA-2024:10175
- https://access.redhat.com/errata/RHSA-2024:10176
- https://access.redhat.com/errata/RHSA-2024:10177
- https://access.redhat.com/errata/RHSA-2024:10178
- https://access.redhat.com/security/cve/CVE-2024-9666
- https://bugzilla.redhat.com/show_bug.cgi?id=2317440
- https://github.com/advisories/GHSA-jgwc-jh89-rpgq
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-11537
Keycloak logs sensitive headers
medium5.0Feb 10, 2026CVE-2026-0976
Keycloak has an improper input validation vulnerability
low3.7No fixJan 15, 2026CVE-2025-10939
Keycloak unable to restrict access to the admin console
low3.7Dec 2, 2025CVE-2024-10973
Keycloak on Quarkus CLI option for encrypted JGroups ignored
medium5.7Feb 5, 2025CVE-2024-11734
Denial of Service in Keycloak Server via Security Headers
medium6.5Jan 13, 2025CVE-2024-11736
Keycloak allows unrestricted admin use of system and environment variables
medium4.9Jan 13, 2025
