Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak
keycloak · Red Hat Build of Keycloak · Red Hat build of Keycloak 26.0 · Red Hat Single Sign-On 7
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.keycloak:keycloak-services Maven |
| No fix yet |
Original description
A flaw was found in Keycloak. When the configuration uses JWT tokens for authentication, the tokens are cached until expiration. If a client uses JWT tokens with an excessively long expiration time, for example, 24 or 48 hours, the cache can grow indefinitely, leading to an OutOfMemoryError. This issue could result in a denial of service condition, preventing legitimate users from accessing the system.
From the CVE record · redhat