CVE-2025-2559
published medium CVSS 3.1 · 4.9Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | keycloak23.0.0 to < 26.0.11 · 26.1.0 to < 26.1.5 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat | — | keycloak-servicesRed Hat Build of Keycloak | Unaffected | Not required | redhat |
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.0 · 26.0.11-2 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.0 · 26.0-12 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.0 · 26.0-13 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | keycloak-servicesRed Hat Single Sign-On 7 | Affected | Not stated | redhat |
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 advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.9 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| keycloak | 23.0.0 to < 26.0.11 (affected · semver)26.1.0 to < 26.1.5 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat Build of Keycloak | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0.11-2 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0-12 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0-13 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Single Sign-On 7 | Default: affected | redhat · cna |
Weaknesses
1- CWE-770 Allocation of Resources Without Limits or Throttling
References
6- RHSA-2025:4335 https://access.redhat.com/errata/RHSA-2025:4335
- RHSA-2025:4336 https://access.redhat.com/errata/RHSA-2025:4336
- https://access.redhat.com/security/cve/CVE-2025-2559
- RHBZ#2353868 https://bugzilla.redhat.com/show_bug.cgi?id=2353868
- https://github.com/keycloak/keycloak/commit/a10c8119d4452b866b90a9019b2cc159919276ca
- https://github.com/keycloak/keycloak/issues/38576
Provider assertions
2redhat · cna
Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2ccb815fa99da4b02b62b65de8f7cbe43aeb891432368c5f125b2df6177813df
- Ingested
- 23 Sep 2026, 08:43:47 UTC
- Source record
- Official CVE record