GHSA-wmxr-6j5f-838p
Duplicate Advisory: Keycloak: Unauthorized access via improper validation of encrypted SAML assertions
Summary
### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-794g-x443-36f7. This link is maintained to preserve external references. ### Original Description A flaw was found in Keycloak. Keycloak's Security Assertion Markup Language (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. This allows the attacker to inject an encrypted assertion for an arbitrary principal, leading to unauthorized access and potential information disclosure.
Affected packages
| Ecosystem | Package | Affected versions | Fixed versions |
|---|---|---|---|
| Maven | org.keycloak:keycloak-saml-adapter-core | — | 26.2.14, 26.4.10, 26.5.5 |
| Maven | org.keycloak:keycloak-saml-core | — | 26.4.10, 26.2.14, 26.5.5 |
| Maven | org.keycloak:keycloak-services | — | 26.5.5, 26.2.14, 26.4.10 |
Remediation: Upgrade to 26.2.14 or later.
References
Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.