CVE-2025-2559Red Hat Build of Keycloak
Medium 4.9
Follow: this CVE · Red Hat · Red Hat Build of Keycloak We alert you by email or Slack (account required).
- Priority
- 29
- CVSS 3.1
- 4.9
- EPSS
- —
- Auth required
- Yes
- Published
- Mar 25, 2025
- Updated
- Sep 21, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Red Hat Build of Keycloak.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services |
≤ 26.1.4 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-2935-2wfm-hhpv). Check the version in your lockfile before upgrading.
Affected products
- Red Hat · Red Hat Build of Keycloak
- Red Hat · Red Hat build of Keycloak 26.0
- Red Hat · Red Hat Single Sign-On 7
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.