CVE-2025-2559
MEDIUM 4.9CVSS 3.1Keycloak Denial of Service (DoS) Vulnerability via JWT Token Cache
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.
- Published
- 25 Mar 2025
- Last modified
- 21 Sep 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Deferred
- Weakness
- CWE-770
- Also known as
- GHSA-2935-2wfm-hhpv
- Sources
- NVDJSONOSV GHSA-2935-2wfm-hhpvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.keycloak:keycloak-services | <= 26.1.4 |
References
- 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/commit/a10c8119d4452b866b90a9019b2cc159919276ca
- https://github.com/keycloak/keycloak/issues/38576
- https://nvd.nist.gov/vuln/detail/CVE-2025-2559 · ADVISORY
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 25 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Mar 2025)