Medium severity · published Mar 25, 2025
CVE-2025-2559
Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak
4.9
CVSS
0.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 53% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RH
Red Hat Single Sign-On 7 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat build of Keycloak 26.0 · Red Hat
All versions, or not specified · source: vendor
Affected product
RH
Red Hat build of Keycloak 26.0
Red Hat
More from Red Hat build of Keycloak 26.0
8.2
CVE-2025-3501
Org.keycloak.protocol.services: keycloak hostname verification
7.5
CVE-2025-11419
Keycloak: keycloak tls client-initiated renegotiation denial of service
7.1
CVE-2025-7365
Keycloak: phishing attack via email verification step in first login flow
6.5
CVE-2024-11734
Org.keycloak:keycloak-quarkus-server: denial of service in keycloak server via security headers
6.5
CVE-2024-10270
Org.keycloak:keycloak-services: keycloak denial of service