Skip to content
OpenAdvisories
Medium · 4.9 CVE-2025-2559 EUVD-2025-8064GHSA-2935-2wfm-hhpv

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

Published Mar 25, 2025 · Updated Sep 21, 2026 · Assigned by redhat

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

VendorProductAffectedFixed
— keycloak 23.0.0 – < 26.0.11, 26.1.0 – < 26.1.5 26.0.11
Red Hat Red Hat Build of Keycloak — —
Red Hat Red Hat build of Keycloak 26.0 — —
Red Hat Red Hat Single Sign-On 7 — —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.keycloak:keycloak-services <= 26.1.4 — GHSA-2935-2wfm-hhpv

Advisories 2

References