Vulnerability · Published Nov 25, 2024 · Assigned by redhat
CVE-2024-9666Org.keycloak/keycloak-quarkus-server: keycloak proxy header handling denial-of-service (dos) vulnerability
Medium 4.7
In plain English
A medium-severity security flaw in keycloak. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-quarkus-server | no fix listed | GHSA-jgwc-jh89-rpgq |
| Maven | org.keycloak:keycloak-quarkus-server | 26.0.6 | GHSA-jgwc-jh89-rpgq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| keycloak | 0 – before 24.0.925.0.0 – before 26.0.6 | |
| Red Hat | Red Hat build of Keycloak 24 | see references |
| Red Hat | Red Hat build of Keycloak 24 | see references |
| Red Hat | Red Hat build of Keycloak 24 | see references |
| Red Hat | Red Hat build of Keycloak 24.0.9 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0.6 | see references |
| Red Hat | Red Hat Build of Keycloak | see references |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | see references |
Weakness: CWE-444 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- RHSA-2024:10175 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:10176 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:10177 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:10178 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-9666 vdb-entry, x_refsource_REDHAT
- RHBZ#2317440 issue-tracking, x_refsource_REDHAT