CVE-2026-2092: Keycloak-services: keycloak: unauthorized access via improper validation of encrypted saml assertions

Published Feb 6, 2026
·
Updated

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.

Other sources

Keycloak validates that plaintext <Assertion> elements are signed when the response root is not signed, but it does not apply the same binding requirement to <EncryptedAssertion>. The saml broker endpoint then decrypts and processes the first assertion choice, which allows an attacker to inject an encrypted assertion for an arbitrary principal alongside a valid signed assertion for themselves. So the response can be crafted in the following way:

Remove the signature for the full response if present. Get the public key of the realm to encrypt the new assertion. Put this encrypted assertion first. Maintain the second assertion that should be signed and valid. This way Keycloak method validates the signature in the second assertion but selects the first one which is just encrypted and not signed. We are missing to check that the selected signature should be signed when the full message is not.

Additional notes The attack is valid for the SAML adapter and the SAML Identity provider. The issue needs that the original message is signed at assertion level.

Requirements to exploit The attacker needs a valid saml assertion signed in the assertion that should be stolen first.

Red Hat

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.

GitHub

Affected Software

7 affected components
Keycloak Keycloak
maven/org.keycloak:keycloak-services<=26.5.5
maven/org.keycloak:keycloak-saml-core<=26.5.5
maven/org.keycloak:keycloak-saml-adapter-core<=26.5.5
maven/org.keycloak:keycloak-services>=26.5.0<26.5.5
maven/org.keycloak:keycloak-services>=26.3.0<=26.4.7
maven/org.keycloak:keycloak-services<=26.2.5

Event History

Feb 6, 2026
Data Sourced
via Red Hat·10:26 AM
DescriptionSeverityAffected Software
Mar 18, 2026
CVE Published
via MITRE·01:14 AM
Data Sourced
via MITRE·01:14 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:32 AM
Data Sourced
via GitHub·03:32 AM
DescriptionSeverityWeaknessAffected Software
Jul 2, 2026
Updated
via GitHub·08:42 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-2092?

CVE-2026-2092 has been classified with a high severity level due to its potential for unauthorized access.

2

How do I fix CVE-2026-2092?

To fix CVE-2026-2092, you should upgrade to the latest version of Keycloak that addresses the improper validation of encrypted SAML assertions.

3

What kind of attack can exploit CVE-2026-2092?

CVE-2026-2092 can be exploited by attackers to gain unauthorized access to resources by submitting unverified SAML responses.

4

Is my Keycloak installation affected by CVE-2026-2092?

If you are using Keycloak and handling SAML responses without proper signatures, your installation may be vulnerable to CVE-2026-2092.

5

What components of Keycloak are affected by CVE-2026-2092?

The CVE-2026-2092 vulnerability specifically affects the SAML broker endpoint within Keycloak.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203