← CVE Intelligence

CVE-2025-2559

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

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
Not supplied / Not suppliedaffected 23.0.0 before 26.0.11; affected 26.1.0 before 26.1.5
Red Hat / Red Hat Build of Keycloakunaffected
Red Hat / Red Hat build of Keycloak 26.0unaffected 26.0.11-2 before *
Red Hat / Red Hat build of Keycloak 26.0unaffected 26.0-12 before *
Red Hat / Red Hat build of Keycloak 26.0unaffected 26.0-13 before *
Red Hat / Red Hat Single Sign-On 7affected

CWE

CWE-770

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.