{"schemaVersion":3,"id":"CVE-2025-2559","aliases":["CGA-wq9m-pmfc-464r","CGA-x2r3-784w-px55","GHSA-2935-2wfm-hhpv"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2025-03-25T08:20:57.666Z","modified":"2026-09-21T05:47:02.130Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","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","exploitability":3.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","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","exploitability":3.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","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","exploitability":3.1,"impact":6,"computed":true}]},"epss":{"probability":0.00703,"percentile":0.52406,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.019999999999999966,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00683},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00703,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00703,"percentile":0.52406}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00683,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00695,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00703,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00703,"percentile":0.52406}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"}],"affected":[{"vendor":"chainguard","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/keycloak","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.keycloak","product":"keycloak-services","name":"org.keycloak:keycloak-services","label":"keycloak-services","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-services","purlType":"maven","versions":[{"text":"≤ 26.1.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 26.1.4","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:4335","label":"access.redhat.com/errata/RHSA-2025:4335","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2025:4336","label":"access.redhat.com/errata/RHSA-2025:4336","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-2559","label":"access.redhat.com/security/cve/CVE-2025-2559","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","Advisory","WEB"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2353868","label":"bugzilla.redhat.com/show_bug.cgi?id=2353868","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT","WEB"]},{"url":"https://github.com/keycloak/keycloak/commit/a10c8119d4452b866b90a9019b2cc159919276ca","label":"github.com/keycloak/keycloak/commit/a10c8119d4452b866b90a9019b2cc159919276ca","hostname":"github.com","tags":["FIX"]},{"url":"https://github.com/keycloak/keycloak/issues/38576","label":"github.com/keycloak/keycloak/issues/38576","hostname":"github.com","tags":["REPORT"]},{"url":"https://access.redhat.com/downloads/content/package-browser/","label":"access.redhat.com/downloads/content/package-browser/","hostname":"access.redhat.com","tags":["WEB"]},{"url":"https://catalog.redhat.com/software/containers/","label":"catalog.redhat.com/software/containers/","hostname":"catalog.redhat.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/","label":"github.com/keycloak/keycloak/","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2559.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2559.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2559","label":"nvd.nist.gov/vuln/detail/CVE-2025-2559","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-03-25T08:20:57.666Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-21T05:47:02.130Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":20,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T01:37:18.330Z","stale":false,"partial":false}}