ADVISORIES

GitHub Advisory Database

GHSA-xv6h-r36f-3gp5

Keycloak: Denial of Service due to excessive SAMLRequest decompression

Details

A flaw was found in Keycloak. An unauthenticated remote attacker can trigger an application level Denial of Service (DoS) by sending a highly compressed SAMLRequest through the SAML Redirect Binding. The server fails to enforce size limits during DEFLATE decompression, leading to an OutOfMemoryError (OOM) and subsequent process termination. This vulnerability allows an attacker to disrupt the availability of the service.

Affected packages

EcosystemPackageAffected versions
Mavenorg.keycloak:keycloak-saml-adapter-core
All versions before 26.5.4 (fixed in 26.5.4)
Mavenorg.keycloak:keycloak-saml-core
All versions before 26.5.4 (fixed in 26.5.4)
Mavenorg.keycloak:keycloak-services
All versions before 26.5.4 (fixed in 26.5.4)

References