Bug 2590883 (CVE-2026-144907)

Summary: CVE-2026-144907 keycloak-services: keycloak-services: Padding oracle on encrypted SAML assertions in identity brokering
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aschwart, aszczucz, boliveir, drichtar, mposolda, pjindal, rmartinc, ssilvert, sthorger, vmuzikar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the SAML identity brokering component of Keycloak, which allows the server to act as a service provider for external identity providers. The issue occurs because Keycloak attempts to decrypt encrypted SAML assertions before verifying their digital signature or integrity. By observing different error responses when decryption fails due to invalid padding, an attacker can recover the sensitive contents of an encrypted assertion without the private key.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-04 12:08:24 UTC
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.