{"id":"CVE-2024-9666","aliases":["CVE-2024-9666","GHSA-jgwc-jh89-rpgq"],"related":[],"kind":"vulnerability","state":"published","title":"Org.keycloak/keycloak-quarkus-server: keycloak proxy header handling denial-of-service (dos) vulnerability","summary":"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.\nThe 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\nThe 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.","source":"cvelist"},{"lang":"en","text":"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.\n\nThe 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.\n\nFor 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una vulnerabilidad en el servidor Keycloak. El servidor Keycloak es vulnerable a un ataque de denegación de servicio (DoS) debido al manejo inadecuado de los encabezados de proxy. Cuando Keycloak está configurado para aceptar encabezados de proxy entrantes, puede aceptar valores que no sean IP, como identificadores ofuscados, sin una validación adecuada. Este problema puede generar costosas operaciones de resolución de DNS, que un atacante podría aprovechar para bloquear subprocesos de E/S y potencialmente causar una denegación de servicio. El atacante debe tener acceso para enviar solicitudes a una instancia de Keycloak que esté configurada para aceptar encabezados de proxy, específicamente cuando los servidores proxy inversos no sobrescriben los encabezados entrantes y Keycloak está configurado para confiar en estos encabezados.","source":"nvd"}],"published":"2024-11-25T07:29:52.073Z","modified":"2026-11-03T09:30:56.413Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-444"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"24.0.9","status":"affected"},{"type":"semver","introduced":"25.0.0","fixed":"26.0.6","status":"affected"}],"package":"keycloak","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"24.0.9-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:24::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"24-18","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:24::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"24-18","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 24","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:24::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 24.0.9","cpe":"cpe:/a:redhat:build_keycloak:24","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.0.6-2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.0::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.0-5","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.0::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.0-6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.0::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0.6","cpe":"cpe:/a:redhat:build_keycloak:26.0","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Keycloak","package":"keycloak-quarkus-server","cpe":"cpe:/a:redhat:build_keycloak:","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"keycloak-quarkus-server","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-quarkus-server","purl":"pkg:maven/org.keycloak/keycloak-quarkus-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"25.0.0","status":"affected","fixed":"26.0.6"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-quarkus-server","purl":"pkg:maven/org.keycloak/keycloak-quarkus-server","source":"ghsa"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:10175","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:10176","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:10177","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:10178","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-9666","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2317440","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-jgwc-jh89-rpgq","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9666","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/issues/35216","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-25T17:14:55.721Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-9666","url":"https://www.cve.org/CVERecord?id=CVE-2024-9666","licence":"CVE Terms of Use","modified":"2026-11-03T09:30:56.413Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jgwc-jh89-rpgq","url":"https://github.com/advisories/GHSA-jgwc-jh89-rpgq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:20.939Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-9666","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9666","licence":"Public domain","modified":"2026-09-21T06:16:59.443Z"}],"updatedAt":"2026-11-25T22:58:49.415Z","epss":{"score":0.0043,"percentile":0.39132,"date":"2026-12-02T12:00:21.000Z"}}