CVE-2025-2559
mediumpriority · track · 0EPSS 0.007 · 53 %ileDEEUNLUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (14)
Products and version ranges known to be affected.
- keycloak-rhel9≤ vers:oci/26.0-1745967474ncsc_nlNLpkg:oci/keycloak-rhel9@sha256:87ff67880fd7f44174b263759c99f4d701cf208eeb6f4abf636a10b98ec023d0?arch=ppc64le&repository_url=registry.redhat.io/rhbk/keycloak-rhel9&tag=26.0-1745967474
- keycloak-rhel9-operator≤ vers:oci/26.0-1745967472ncsc_nlNLpkg:oci/keycloak-rhel9-operator@sha256:acd2a3adf7365e62689b79608c2289c804f47f97a81f9e8ddf3fecdce6d6f0ec?arch=s390x&repository_url=registry.redhat.io/rhbk/keycloak-rhel9-operator&tag=26.0-1745967472
advisories (3)
Vendor and ecosystem advisories describing this.
- NCSC-2025-0141Kwetsbaarheden verholpen in KeycloakNL2025-05-06csaf · ncsc_nlNL
Red Hat heeft kwetsbaarheden verholpen in Keycloak.
- WID-SEC-W-2025-0630Keycloak: Schwachstelle ermöglicht Denial of ServiceDeutsch2025-03-24csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Keycloak ausnutzen, um einen Denial of Service Angriff durchzuführen.
- GHSA-2935-2wfm-hhpvKeycloak Denial of Service (DoS) Vulnerability via JWT Token Cache2025-03-25ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (16)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/CVE-2025-2559cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2353868cnnvd
- https://github.com/keycloak/keycloak/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-2559cnnvd
- https://access.redhat.com/errata/RHSA-2025:4335enisa_euvd
- https://access.redhat.com/errata/RHSA-2025:4336enisa_euvd
- https://access.redhat.com/security/cve/CVE-2025-2559enisa_euvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2353868enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan