CVE-2026-144907: Keycloak-services: keycloak-services: padding oracle on encrypted saml assertions in identity brokering
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Keycloak as a SAML service provider for an external identity provider are exposed through the SAML identity brokering component, specifically when handling encrypted SAML assertions.
What does an attacker need to exploit the flaw?
The attacker needs to submit encrypted SAML assertions and observe differing error responses produced when decryption fails because of invalid padding. No credentials or user interaction are indicated by the provided severity vector.
What could an attacker obtain?
An attacker can recover sensitive contents from an encrypted SAML assertion without possessing the private key.