CVE-2024-9666

Org.keycloak/keycloak-quarkus-server: keycloak proxy header handling denial-of-service (dos) vulnerability

State
Published
Severity
4.7 Medium
Published
Nov 25, 2024
Updated
Oct 13, 2026
Reserved
Oct 8, 2024

Read the record on cve.org

Description

A vulnerability was found in the Keycloak Server. The Keycloak Server is vulnerable to a denial of service (DoS) attack due to 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 issue 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.

Scores

CVSSScoreVectorSource
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:Hredhat

Weaknesses

  • CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Affected Products

ProductVersions
keycloak
  • before 24.0.9Affected
  • 25.0.0 to before 26.0.6Affected
Red Hat build of Keycloak 24Red Hat
  • 24.0.9-1 and laterNot affected
Red Hat build of Keycloak 24Red Hat
  • 24-18 and laterNot affected
Red Hat build of Keycloak 24Red Hat
  • 24-18 and laterNot affected
Red Hat build of Keycloak 24.0.9Red Hat
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0.6-2 and laterNot affected
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0-5 and laterNot affected
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0-6 and laterNot affected
    Red Hat build of Keycloak 26.0.6Red Hat
      Red Hat Build of KeycloakRed Hat
        Red Hat JBoss Enterprise Application Platform 8Red Hat

          References

          Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.