CVE-2025-2559
MEDIUM4.9EPSS 0.02%Keycloak Denial of Service (DoS) Vulnerability via JWT Token Cache
Published: 3/25/2025Modified: 4/30/2025
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.
Affected packages (1)
- Maven/org.keycloak:keycloak-servicesfrom 0, <= 26.1.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-2559
- PATCHhttps://github.com/keycloak/keycloak
- WEBhttps://access.redhat.com/errata/RHSA-2025:4335
- WEBhttps://access.redhat.com/errata/RHSA-2025:4336
- WEBhttps://access.redhat.com/security/cve/CVE-2025-2559
- WEBhttps://bugzilla.redhat.com/show_bug.cgi?id=2353868