Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.keycloak/keycloak-services
  4. ›
  5. CVE-2025-2559

CVE-2025-2559: Keycloak Denial of Service (DoS) Vulnerability via JWT Token Cache

March 25, 2025 (updated April 30, 2025)

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.

References

  • access.redhat.com/errata/RHSA-2025:4335
  • access.redhat.com/security/cve/CVE-2025-2559
  • bugzilla.redhat.com/show_bug.cgi?id=2353868
  • github.com/advisories/GHSA-2935-2wfm-hhpv
  • github.com/keycloak/keycloak
  • nvd.nist.gov/vuln/detail/CVE-2025-2559

Code Behaviors & Features

Detect and mitigate CVE-2025-2559 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 26.1.4

Solution

Unfortunately, there is no solution available yet.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

maven/org.keycloak/keycloak-services/CVE-2025-2559.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:34 +0000.