{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "23.0.0"
              },
              {
                "fixed": "26.0.11"
              },
              {
                "introduced": "26.1.0"
              },
              {
                "fixed": "26.1.5"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "1d4ce3d8e9dbc9af996f9248996c78e145902a35"
            },
            {
              "introduced": "90f25533be7a7fe2f97e9c0d2040343a8e3e8738"
            },
            {
              "fixed": "7dca54e8dc0dbe23995e260c989c9ef2e9023a94"
            },
            {
              "fixed": "8d6046175da89a45c583821859ddf8ae5dfb4fcd"
            },
            {
              "fixed": "a10c8119d4452b866b90a9019b2cc159919276ca"
            }
          ],
          "repo": "https://github.com/keycloak/keycloak",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-770"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2559.json"
  },
  "details": "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.",
  "id": "CVE-2025-2559",
  "modified": "2026-07-16T03:31:09.662307965Z",
  "published": "2025-03-25T08:20:57.666Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "WEB",
      "url": "https://catalog.redhat.com/software/containers/"
    },
    {
      "type": "WEB",
      "url": "https://github.com/keycloak/keycloak/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2025:4335"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2025:4336"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2025-2559"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2559.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-2559"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2353868"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/keycloak/keycloak/issues/38576"
    },
    {
      "type": "FIX",
      "url": "https://github.com/keycloak/keycloak/commit/a10c8119d4452b866b90a9019b2cc159919276ca"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak"
}