CVE Catalog

CVE-2025-2559

MediumCVSS 4.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.68%

51th percentile - higher than 51% of all known CVEs

Summary

A flaw was found in Keycloak where JWT tokens used for authentication are cached until expiration. If a client uses JWT tokens with excessively long expiration times (e.g., 24 or 48 hours), the cache can grow indefinitely, leading to an OutOfMemoryError.

Risk Assessment

This could result in a denial of service condition, preventing legitimate users from accessing the system.

Recommendation

Limit JWT token expiration times to reasonable values and monitor Keycloak memory usage to prevent resource exhaustion.

Other vulnerabilities in Keycloak

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS