Org.keycloak/keycloak-services: jwt token cache exhaustion leading to denial of service (dos) in keycloak (keycloak)

CVE-2025-2559
MEDIUM 4.9

At a glance

Source
NVD
EPSS
EPSS 0.70 % · percentile 53 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Deferred

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.

Weaknesses (CWE)

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

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.9CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:Hredhat
CVSS 3.1MEDIUM 4.9CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HNVD · secalert@redhat.com (Secondary)

Advisories

European references

Affected products

ProductVersions
keycloakaffected 23.0.0 < 26.0.11 ; affected 26.1.0 < 26.1.5
Red Hat · Red Hat Build of Keycloak
Red Hat · Red Hat build of Keycloak 26.0unaffected 26.0.11-2 < *
Red Hat · Red Hat build of Keycloak 26.0unaffected 26.0-12 < *
Red Hat · Red Hat build of Keycloak 26.0unaffected 26.0-13 < *
Red Hat · Red Hat Single Sign-On 7

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD