ADVISORIES

GitHub Advisory Database

GHSA-794g-x443-36f7

Keycloak: Unauthorized access via improper validation of encrypted SAML assertions

Details

Keycloak's SAML broker endpoint does not properly validate encrypted assertions when the overall SAML response is not signed. An attacker with a valid signed SAML assertion can exploit this by crafting a malicious SAML response, injecting an encrypted assertion for an arbitrary principal, leading to unauthorized access and potential information disclosure.

Affected packages

EcosystemPackageAffected versions
Mavenorg.keycloak:keycloak-services
All versions up to and including 26.2.5
Mavenorg.keycloak:keycloak-services
From 26.3.0 up to and including 26.4.7
Mavenorg.keycloak:keycloak-services
From 26.5.0 before 26.5.5 (fixed in 26.5.5)

References