GitHub Advisoryadvisory · Maven
GHSA-2935-2wfm-hhpv Keycloak Denial of Service (DoS) Vulnerability via JWT Token Cache
MEDIUM
Official page ↗
- Aliases
- CVE-2025-2559
- Ecosystem
- Maven
- Packages
- org.keycloak:keycloak-services
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-770
- Reviewed
- 2025-03-25
Affected packages
• Maven org.keycloak:keycloak-services: <= 26.1.4 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2025-2559 A flaw was found in Keycloak. vulnerability
Weakness · CWE (1)
- CWE-770 Allocation of Resources Without Limits or Throttling weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-2559 advisory
- https://access.redhat.com/errata/RHSA-2025:4335 web
- https://access.redhat.com/errata/RHSA-2025:4336 web
- https://access.redhat.com/security/cve/CVE-2025-2559 web
- https://bugzilla.redhat.com/show_bug.cgi?id=2353868 web
- https://github.com/keycloak/keycloak package