GHSA-2935-2wfm-hhpv
Keycloak Denial of Service (DoS) Vulnerability via JWT Token Cache
At a glance
- Published
- Updated
- CVE
- CVE-2025-2559
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
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
| Package | Versions |
|---|---|
| Maven · org.keycloak:keycloak-services | introduced 0, last affected 26.1.4 |
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
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |