Skip to content
CVE PROGRAM SOURCE RECORD4.9 Medium

CVE-2025-2559

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

keycloak

Default version status: unaffected

  • 23.0.0 to < 26.0.11affected
  • 26.1.0 to < 26.1.5affected

Red Hat Red Hat Build of Keycloak

Default version status: unaffected

Red Hat Red Hat build of Keycloak 26.0

Default version status: affected

  • 26.0.11-2 to < *unaffected

Red Hat Red Hat build of Keycloak 26.0

Default version status: affected

  • 26.0-12 to < *unaffected

Red Hat Red Hat build of Keycloak 26.0

Default version status: affected

  • 26.0-13 to < *unaffected

Red Hat Red Hat Single Sign-On 7

Default version status: affected

References