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.
The product allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.
Link | Tags |
---|---|
https://access.redhat.com/errata/RHSA-2025:4335 | vendor advisory |
https://access.redhat.com/errata/RHSA-2025:4336 | vendor advisory |
https://access.redhat.com/security/cve/CVE-2025-2559 | vdb entry |
https://bugzilla.redhat.com/show_bug.cgi?id=2353868 | issue tracking |