What’s Vulnerable › Vulnerabilities

CVE-2024-8698: Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak

Description

A flaw exists in the SAML signature validation method within the Keycloak XMLSignatureUtil class. The method incorrectly determines whether a SAML signature is for the full document or only for specific assertions based on the position of the signature in the XML document, rather than the Reference element used to specify the signed element. This flaw allows attackers to create crafted responses that can bypass the validation, potentially leading to privilege escalation or impersonation attacks.

Affected products

How to fix

Upgrade to a fixed version: Red Hat build of Keycloak 26.4 24-17, 24.0.8-1; Red Hat build of Keycloak 22 22-18, 22-21, 22.0.13-1; Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 8 0:0.1.0-2.redhat_00010.1.el8eap, 0:0.8.1-2.redhat_00001.1.el8eap, 0:1.1.3-1.redhat_00001.1.el8eap, 0:1.12.284-2.redhat_00002.1.el8eap; Red Hat JBoss Enterprise Application Platform 8.0 for RHEL 9 0:0.1.0-2.redhat_00010.1.el9eap, 0:0.8.1-2.redhat_00001.1.el9eap, 0:1.1.3-1.redhat_00001.1.el9eap, 0:1.12.284-2.redhat_00002.1.el9eap; Red Hat Single Sign-On 7.6 for RHEL 7 0:18.0.18-1.redhat_00001.1.el7sso; Red Hat Single Sign-On 7.6 for RHEL 8 0:18.0.18-1.redhat_00001.1.el8sso; Red Hat Single Sign-On 7.6 for RHEL 9 0:18.0.18-1.redhat_00001.1.el9sso; Red Hat RHEL-8 based Middleware Containers 7.6-54. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-8698 or the next vulnerability affects your stack