CVE-2025-2559: Red Hat Build Of Keycloak

Medium severity, CVSS 4.9. EPSS: 1.2% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Red Hat Build Of Keycloak 26.0, before 26.0.11-2: fixed in 26.0.11-2
  • Red Hat Build Of Keycloak 26.0, before 26.0-12: fixed in 26.0-12
  • Red Hat Build Of Keycloak 26.0, before 26.0-13: fixed in 26.0-13

Affected products

Affected packages

Published 2025-03-25. Last modified 2026-09-21.