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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-444
- **Aliases:** GHSA-jgwc-jh89-rpgq
- **Published:** 2024-11-25T07:29:52.073Z
- **Modified:** 2026-11-03T09:30:56.413Z

## Who should check

- Projects that depend on Maven package org.keycloak:keycloak-quarkus-server (12.0.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 13.0.0, 13.0.1, 14.0.0, 15.0.0, 15.0.1)
- Anyone running keycloak \< 24.0.9; \>= 25.0.0, \< 26.0.6
- Anyone running Red Hat build of Keycloak 24 all versions
- Anyone running Red Hat build of Keycloak 24.0.9 (versions: see the vendor advisory)
- Anyone running Red Hat build of Keycloak 26.0 all versions
- Anyone running Red Hat build of Keycloak 26.0.6 (versions: see the vendor advisory)
- Anyone running Red Hat Build of Keycloak all versions
- Anyone running Red Hat JBoss Enterprise Application Platform 8 (versions: see the vendor advisory)

## 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 and fixed versions

- Maven `org.keycloak:keycloak-quarkus-server`: affected 12.0.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 13.0.0, 13.0.1, 14.0.0, 15.0.0, 15.0.1; fixed 26.0.6 (osv)
- keycloak: \< 24.0.9; \>= 25.0.0, \< 26.0.6 (cvelist)
- Red Hat build of Keycloak 24: all versions (cvelist)
- Red Hat build of Keycloak 24: all versions (cvelist)
- Red Hat build of Keycloak 24: all versions (cvelist)
- Red Hat build of Keycloak 24.0.9: see vendor advisory (cvelist)
- Red Hat build of Keycloak 26.0: all versions (cvelist)
- Red Hat build of Keycloak 26.0: all versions (cvelist)
- Red Hat build of Keycloak 26.0: all versions (cvelist)
- Red Hat build of Keycloak 26.0.6: see vendor advisory (cvelist)
- Red Hat Build of Keycloak: all versions (cvelist)
- Red Hat JBoss Enterprise Application Platform 8: see vendor advisory (cvelist)

## Mitigation

- Upgrade org.keycloak:keycloak-quarkus-server to 26.0.6 or later.
- Vendor workaround: Configure the reverse proxy to overwrite incoming proxy headers, including X-Forwarded-For, and ensure Keycloak trusts proxy headers only from the intended proxy rather than directly from untrusted clients. If proxy-header support is not required, disable acceptance of incoming proxy headers.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-9666. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-9666.md
Affected: org.keycloak:keycloak-quarkus-server 12.0.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 13.0.0, 13.0.1, 14.0.0, 15.0.0, 15.0.1
Fixed in: 26.0.6

Steps:
1. Search this machine and project for org.keycloak:keycloak-quarkus-server (Maven), keycloak, Red Hat build of Keycloak 24, Red Hat build of Keycloak 24.0.9, Red Hat build of Keycloak 26.0, Red Hat build of Keycloak 26.0.6: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-9666 being exploited?

There is no confirmed exploitation: CVE-2024-9666 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-9666?

Medium: CVSS 4.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-9666?

org.keycloak:keycloak-quarkus-server 12.0.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 13.0.0, 13.0.1, 14.0.0, 15.0.0, 15.0.1.

### Is there a fix for CVE-2024-9666?

Yes. Fixed in 26.0.6. Upgrade org.keycloak:keycloak-quarkus-server to 26.0.6 or later. Vendor workaround: Configure the reverse proxy to overwrite incoming proxy headers, including X-Forwarded-For, and ensure Keycloak trusts proxy headers only from the intended proxy rather than directly from untrusted clients. If proxy-header support is not required, disable acceptance of incoming proxy headers.

### How do I check if I'm affected by CVE-2024-9666?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2024:10175>
- vendor: <https://access.redhat.com/errata/RHSA-2024:10176>
- vendor: <https://access.redhat.com/errata/RHSA-2024:10177>
- vendor: <https://access.redhat.com/errata/RHSA-2024:10178>
- vendor: <https://github.com/keycloak/keycloak/security/advisories/GHSA-jgwc-jh89-rpgq>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-9666>
- other: <https://access.redhat.com/security/cve/CVE-2024-9666>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2317440>
- other: <https://github.com/keycloak/keycloak/issues/35216>
- other: <https://github.com/keycloak/keycloak>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-9666>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jgwc-jh89-rpgq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-9666> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-9666>
