CVE-2024-8698: Red Hat Build Of Keycloak
High severity, CVSS 7.7. EPSS: 2.2% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Red Hat Build Of Keycloak 22, before 22.0.13-1: fixed in 22.0.13-1
- Red Hat Build Of Keycloak 22, before 22-18: fixed in 22-18
- Red Hat Build Of Keycloak 22, before 22-21: fixed in 22-21
- Red Hat Build Of Keycloak 24, before 24.0.8-1: fixed in 24.0.8-1
- Red Hat Build Of Keycloak 24, before 24-17: fixed in 24-17
- Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 8, before 0:2.33.0-1.redhat_00015.1.el8eap: fixed in 0:2.33.0-1.redhat_00015.1.el8eap
- Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 8, before 1:2.0.0-2.redhat_00005.1.el8eap: fixed in 1:2.0.0-2.redhat_00005.1.el8eap
- Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 8, before 0:1.8.0-2.redhat_00001.1.el8eap: fixed in 0:1.8.0-2.redhat_00001.1.el8eap
- Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 8, before 0:2.2.0-2.redhat_00001.1.el8eap: fixed in 0:2.2.0-2.redhat_00001.1.el8eap
- Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 8, before 0:1.16.1-2.redhat_00007.1.el8eap: fixed in 0:1.16.1-2.redhat_00007.1.el8eap
- and 69 more
Affected products
- Red Hat Red Hat Build Of Keycloak
- Red Hat Red Hat Build Of Keycloak 22: before 22.0.13-1 (fixed in 22.0.13-1); before 22-18 (fixed in 22-18); before 22-21 (fixed in 22-21)
- Red Hat Red Hat Build Of Keycloak 24: before 24.0.8-1 (fixed in 24.0.8-1); before 24-17 (fixed in 24-17)
- Red Hat Red Hat JBoss Enterprise Application Platform 8
- Red Hat Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 8: before 0:2.33.0-1.redhat_00015.1.el8eap (fixed in 0:2.33.0-1.redhat_00015.1.el8eap); before 1:2.0.0-2.redhat_00005.1.el8eap (fixed in 1:2.0.0-2.redhat_00005.1.el8eap); before 0:1.8.0-2.redhat_00001.1.el8eap (fixed in 0:1.8.0-2.redhat_00001.1.el8eap); before 0:2.2.0-2.redhat_00001.1.el8eap (fixed in 0:2.2.0-2.redhat_00001.1.el8eap); before 0:1.16.1-2.redhat_00007.1.el8eap (fixed in 0:1.16.1-2.redhat_00007.1.el8eap); before 0:3.2.2-28.redhat_2.1.el8eap (fixed in 0:3.2.2-28.redhat_2.1.el8eap); …
- Red Hat Red Hat JBoss Enterprise Application Platform 8.0 For Rhel 9: before 0:2.33.0-1.redhat_00015.1.el9eap (fixed in 0:2.33.0-1.redhat_00015.1.el9eap); before 1:2.0.0-2.redhat_00005.1.el9eap (fixed in 1:2.0.0-2.redhat_00005.1.el9eap); before 0:1.8.0-2.redhat_00001.1.el9eap (fixed in 0:1.8.0-2.redhat_00001.1.el9eap); before 0:2.2.0-2.redhat_00001.1.el9eap (fixed in 0:2.2.0-2.redhat_00001.1.el9eap); before 0:1.16.1-2.redhat_00007.1.el9eap (fixed in 0:1.16.1-2.redhat_00007.1.el9eap); before 0:3.2.2-28.redhat_2.1.el9eap (fixed in 0:3.2.2-28.redhat_2.1.el9eap); …
- Red Hat Red Hat Single Sign-On 7
- Red Hat Red Hat Single Sign-On 7.6 For Rhel 7: before 0:18.0.18-1.redhat_00001.1.el7sso (fixed in 0:18.0.18-1.redhat_00001.1.el7sso)
- Red Hat Red Hat Single Sign-On 7.6 For Rhel 8: before 0:18.0.18-1.redhat_00001.1.el8sso (fixed in 0:18.0.18-1.redhat_00001.1.el8sso)
- Red Hat Red Hat Single Sign-On 7.6 For Rhel 9: before 0:18.0.18-1.redhat_00001.1.el9sso (fixed in 0:18.0.18-1.redhat_00001.1.el9sso)
- Red Hat Rhel-8 Based Middleware Containers: before 7.6-54 (fixed in 7.6-54)
Affected packages
- org.keycloak:keycloak-saml-core (Maven)
Published 2024-09-19. Last modified 2026-08-04.