# CVE-2025-2559: Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak

- Severity: Medium 4.9 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.19%, higher than 68% of CVEs (2026-11-30)
- Published: 2025-03-25T08:20:57.666Z
- Modified: 2026-09-21T06:17:00.170Z
- Also known as: GHSA-2935-2wfm-hhpv
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- keycloak: from 23.0.0 before 26.0.11; from 26.1.0 before 26.1.5
- keycloak-services: no versions given
- rhbk/keycloak-operator-bundle: no versions given (not affected: from 26.0.11-2 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 26.0-12 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 26.0-13 before *)
- org.keycloak:keycloak-services (Maven): up to 26.1.4

## Every score

- redhat: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2025:4335> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:4336> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2025-2559> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2353868> (issue-tracking, 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)

## Sources

- CVE List: [CVE-2025-2559](https://www.cve.org/CVERecord?id=CVE-2025-2559), CVE Terms of Use, modified 2026-09-21
- GitHub Advisory Database: [GHSA-2935-2wfm-hhpv](https://github.com/advisories/GHSA-2935-2wfm-hhpv), CC-BY-4.0, modified 2025-04-30
- NVD: [CVE-2025-2559](https://nvd.nist.gov/vuln/detail/CVE-2025-2559), Public domain, modified 2026-09-21

---

Page: https://cve.day/CVE-2025-2559 · Whole record: https://cve.day/CVE-2025-2559.json · Rebuilt by cve.day 2026-11-25T22:58:55.499Z
