CVE-2025-2559

Medium

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.

SeverityMedium
CVSS4.9
Exploit probability—
ProductOrg.keycloak:keycloak-services
PublishedMar 25, 2025
First seenMar 25, 2025

How to fix

Affected products

ProductAffected versionsFixed in
org.keycloak:keycloak-servicesMavenv ≤ 26.1.4—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.