REDHAT-BUG-2590883: Medium severity Red Hat Keycloak vulnerability

Published Dec 4, 2026
·
Updated

A padding oracle vulnerability was discovered in the SAML identity brokering implementation of Keycloak. When Keycloak is configured as a SAML service provider, it processes incoming SAML responses that contain encrypted assertions. If a response is unsigned, Keycloak performs decryption of the assertion before any integrity or signature checks are executed. The endpoint returns a distinguishable empty HTTP 400 error when decryption fails due to an invalid CBC padding, compared to other responses when decryption succeeds. An unauthenticated remote attacker who has captured an encrypted SAML assertion can exploit this discrepancy to perform a padding oracle attack. By sending a large number of crafted requests and observing the response patterns, the attacker can recover the plaintext of the encrypted assertion byte by byte. This allows the attacker to access sensitive user identity information and attributes, bypassing the confidentiality protections provided by assertion encryption.

Affected Software

1 affected component
Red Hat Keycloak

Event History

Dec 4, 2026
Data Sourced
via Red Hat·12:08 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments are exposed when Keycloak is configured as a SAML service provider and processes incoming SAML responses containing encrypted assertions. The described oracle condition applies to unsigned responses.

2

What does an attacker need to exploit it?

An unauthenticated remote attacker needs to have captured an encrypted SAML assertion. They then send a large number of crafted requests and distinguish invalid-CBC-padding failures from responses indicating successful decryption.

3

What information can be recovered through the oracle?

The attacker can recover the plaintext of the encrypted assertion byte by byte. This can expose sensitive user identity information and attributes contained in the assertion.

4

How can I identify the vulnerable response behavior?

Send a SAML response with an encrypted assertion whose CBC padding is invalid and observe the endpoint response. The affected behavior is a distinguishable empty HTTP 400 response for padding-related decryption failures, unlike responses when decryption succeeds.

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