CVE-2024-1249 Keycloak: org.keycloak.protocol.oidc: unvalidated cross-origin messages in checkloginiframe leads to ddos
Attackers can cause denial of service in Keycloak by sending unvalidated cross-origin messages to the checkLoginIframe endpoint.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-1249?
CVE-2024-1249 is a high-severity denial of service vulnerability in Red Hat Migration Toolkit for Applications 6, published on 17 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A flaw was found in Keycloak's OIDC component in the "checkLoginIframe," which allows unvalidated cross-origin messages. This flaw allows attackers to coordinate and send millions of requests in seconds using simple code, significantly impacting the application's availability without proper origin validation for incoming messages.
Weakness: CWE-346
Which versions are affected by CVE-2024-1249?
4 open source packages ship an affected version, including org.keycloak:keycloak-services.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-services Maven | All versions | 22.0.10 |
org.keycloak:keycloak-services Maven | All versions | 22.0.10 |
org.keycloak:keycloak-services Maven | From 23.0.0 | 24.0.3 |
org.keycloak:keycloak-services Maven | From 23.0.0 | 24.0.3 |
How do I fix CVE-2024-1249?
Upgrade org.keycloak:keycloak-services to a fixed version for your release line: 22.0.10 or 24.0.3.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-1249 being exploited?
There is no known exploitation of CVE-2024-1249 in the wild and no public exploit code.
Sources
Also known as GHSA-m6q9-p373-g5q8.