CVE-2025-2559

MEDIUM

Keycloak - Denial of Service via JWT Token Cache Exhaustion

Title source: llm
STIX 2.1

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.

References (6)

Core 6

Scores

CVSS v3 4.9
EPSS 0.0003
EPSS Percentile 7.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-770
Status published
Products (6)
org.keycloak/keycloak-services 0Maven
Red Hat/Red Hat Build of Keycloak
Red Hat/Red Hat build of Keycloak 26.0 26.0-12
Red Hat/Red Hat build of Keycloak 26.0 26.0-13
Red Hat/Red Hat build of Keycloak 26.0 26.0.11-2
Red Hat/Red Hat Single Sign-On 7
Published Mar 25, 2025
Tracked Since Feb 18, 2026