CVE-2025-2559

published 25 Mar 2025 · updated 21 Sep 2026

Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak

4.9MediumCVSS 4.9EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 26.0.11 and 26.1.5.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatBuild of Keycloak
Red HatSingle Sign-On
>=23.0.0 <26.0.11, >=26.1.0 <26.1.526.0.11, 26.1.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-2559 severity on Zeptric[![CVE-2025-2559](https://zeptric.io/badge/cve/CVE-2025-2559.svg)](https://zeptric.io/cve/CVE-2025-2559)