Medium [CVE-2025-2559] Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak
This medium-severity Red Hat Linux advisory covers CVE-2025-2559 affecting Red Hat build of Keycloak 26.0, Red Hat Single Sign-On 7.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.
Summary
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.
Red Hat severity: Moderate — CVSS 4.9 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H). Weakness: CWE-770.
Affected Red Hat products: Red Hat Build of Keycloak; Red Hat build of Keycloak 26.0; Red Hat Single Sign-On 7. Red Hat fixing advisory: RHSA-2025:4336, RHSA-2025:4335.
Affected versions
No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.
Official advisory · high-confidence parse· fetched 23 days ago·verify at source
- keycloak-services
- rhbk/keycloak-operator-bundle:26.0.11-2
- rhbk/keycloak-rhel9:26.0-12
- rhbk/keycloak-rhel9-operator:26.0-13
- RHSA-2025:4336
- RHSA-2025:4335
Official advisory · high-confidence parse· fetched 23 days ago·verify at source
Mitigation
Upgrade to a fixed release: keycloak-services, rhbk/keycloak-operator-bundle:26.0.11-2, rhbk/keycloak-rhel9:26.0-12, rhbk/keycloak-rhel9-operator:26.0-13, RHSA-2025:4336, RHSA-2025:4335. That is the remediation for this advisory.
The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.
Official advisory · high-confidence parse· fetched 23 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.