CVE-2025-2559Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak
- 4.9MediumCVSS base score
- 0.70%Exploitation in 30 daysEPSS · top 46% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known 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.
Timeline
ID reserved
By redhat
- 5 days later
· 5 days later
Published
- 18 months later
· 18 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Deferred | 3.1 | Medium4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.70% · top 46% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.9.
Affected products
keycloak
- affected 23.0.0 – < 26.0.11
- affected 26.1.0 – < 26.1.5
Red Hat · Red Hat Build of Keycloak
All versions: unaffected
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0.11-2 – < *
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0-12 – < *
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0-13 – < *
Red Hat · Red Hat Single Sign-On 7
All versions: affected
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.keycloak:keycloak-servicesGHSA-2935-2wfm-hhpv (opens in a new tab)
References
References6
- RHSA-2025:4335 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:4336 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-2559 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2353868 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://github.com/keycloak/keycloak/commit/a10c8119d4452b866b90a9019b2cc159919276ca (opens in a new tab)
- https://github.com/keycloak/keycloak/issues/38576 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-8064 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-2935-2wfm-hhpv (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-2559)Record last updated .