Resource management error in Keycloak - CVE-2025-2559

 

Resource management error in Keycloak - CVE-2025-2559

Published: April 30, 2025


Vulnerability identifier: #VU108092
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-2559
CWE-ID: CWE-399
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to perform a denial of service (DoS) attack.

The vulnerability exists due to improper management of internal resources within the application when caching JWT tokens. 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 denial of service.


Affected software

Keycloak
Red Hat build of Keycloak

How to mitigate CVE-2025-2559

Install updates from vendor's website.

Keycloak - update to 26.2.2
Red Hat build of Keycloak - update to 26.0.11

External References

Related Security Bulletins