Denial of Service in Keycloak Server via Security Headers
Date: 2025-01
Affected: maven/org.keycloak:keycloak-quarkus-server
Attack vector: dos
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2024-11734
CWE: CWE-693
CVSS: 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)

A potential Denial of Service (DoS) vulnerability has been identified in Keycloak, which could allow an administrative user with the rights to change realm settings to disrupt the service. This is done by modifying any of the security headers and inserting newlines, which causes the Keycloak server to write to a request that is already terminated, leading to a failure of said request. Service disruption may happen, users will be unable to access applications relying on Keycloak, or any of the consoles provided by Keycloak itself on the affected realm.


Mitigations:

Architectural layers (MAESTRO):