CVE-2025-2559 Details
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.
A denial-of-service vulnerability has been identified in Keycloak when using JWT tokens for authentication. The issue arises because these tokens are cached until they expire. If a client employs JWT tokens with long expiration times, such as 24 or 48 hours, the cache can expand indefinitely. This unbounded caching can cause memory exhaustion, leading to an OutOfMemoryError and disrupting access for legitimate users.
Users can upgrade to the Red Hat build of Keycloak 26.0.11, which addresses this vulnerability. Instructions for downloading this version are available on the Red Hat Customer Portal.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 25, 2025CISA-ADP
Assessed Mar 31, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2025:4335 | [email protected] | AdvisoryBundleRemedyVendor |
| https://access.redhat.com/errata/RHSA-2025:4336 | [email protected] | AdvisoryBundleRemedyVendor |
| https://access.redhat.com/security/cve/CVE-2025-2559 | [email protected] | AdvisoryRemedyVendor |
| https://bugzilla.redhat.com/show_bug.cgi?id=2353868 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/keycloak/keycloak/commit/a10c8119d4452b866b90a9019b2cc159919276ca | [email protected] | |
| https://github.com/keycloak/keycloak/issues/38576 | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Red Hat build of Keycloak | < 22 < 26.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 21, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 6, 2026 | CVE Modified | [email protected] |
| Apr 30, 2025 | CVE Modified | [email protected] |
| Apr 29, 2025 | CVE Modified | [email protected] |
| Mar 25, 2025 | New CVE Received | [email protected] |
Volerion