{"id":"CVE-2025-2559","aliases":["GHSA-2935-2wfm-hhpv"],"url":"https://o3.security/vulnerability/CVE-2025-2559","summary":"Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak","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.","published":"2025-03-25T08:20:57.666Z","modified":"2026-08-08T08:26:46.426970Z","cvss":{"score":4.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","fixedVersion":null}],"fix":{"url":"https://github.com/keycloak/keycloak/commit/a10c8119d4452b866b90a9019b2cc159919276ca","label":"keycloak/keycloak@a10c811"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T08:26:46.426970Z"}}