CVE-2025-2559
MEDIUMKeycloak - Denial of Service via JWT Token Cache Exhaustion
Title source: llmDescription
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
Core References
Issue Tracking issue-tracking
x_refsource_redhat
https://bugzilla.redhat.com/show_bug.cgi?id=2353868
Vendor Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2025:4335
Vendor Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2025:4336
Vendor Advisory vdb-entry
x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2025-2559
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